Browse Source

上传完成后清除文件

duy 2 years ago
parent
commit
5832f77f8e
1 changed files with 1 additions and 0 deletions
  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('上传失败');
     }