浏览代码

上传完成后清除文件

duy 2 年之前
父节点
当前提交
5832f77f8e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/views/tentative/material/components/HcDragUpload.vue

+ 1 - 0
src/views/tentative/material/components/HcDragUpload.vue

@@ -114,6 +114,7 @@ const uploadSuccess = ({code, data}) => {
     if (code === 200) {
         window?.$message?.success('上传成功');
         emit('finished', data)
+        clearFiles()
     } else {
         window?.$message?.error('上传失败');
     }