Commit aac0e227 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化上传组件

parent 6ea454c9
......@@ -43,11 +43,7 @@
<el-image-viewer
v-if="preview"
:appendToBody="false"
:on-close="
() => {
(preview = false), (filepaths = []);
}
"
:on-close="closePreview"
:url-list="filepaths"
/>
<!-- 视频预览 -->
......@@ -290,6 +286,10 @@ export default {
document.body.removeChild(a);
}
},
closePreview() {
this.preview = false;
this.filepaths = [];
},
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment