浏览代码

修复附件列表bug

xiaohaizhao 1 年之前
父节点
当前提交
345cd12bed
共有 1 个文件被更改,包括 1 次插入2 次删除
  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);