Browse Source

修复附件列表bug

xiaohaizhao 1 year ago
parent
commit
345cd12bed
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/WebsiteManagement/marketproductMag/compents/upload.vue

+ 1 - 2
src/WebsiteManagement/marketproductMag/compents/upload.vue

@@ -171,8 +171,7 @@ export default {
   methods: {
     handleChange(file, filelist) {
       if (!this.filelist.some((v) => v.uid == file.uid))
-        this.filelist = filelist;
-      console.log("filelist", JSON.parse(JSON.stringify(filelist)));
+        this.filelist.push(file);
       this.loading = true;
       let filename = file.raw.name,
         filetype = file.name.substr(file.raw.name.lastIndexOf(".") + 1);