Browse Source

上传完成后清除文件

duy 2 năm trước cách đây
mục cha
commit
5832f77f8e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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('上传失败');
     }