Browse Source

excel导入问题

zhuliu 1 năm trước cách đây
mục cha
commit
cbe0eac781
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/views/components/import/components/importPatent.vue

+ 3 - 1
src/views/components/import/components/importPatent.vue

@@ -154,11 +154,13 @@ export default {
                 return item.uid == file.uid
             })
             if (a != -1) {
-                this.files.splice(a, 1, file.raw)
+                this.files=[file.raw]
                 this.form.fileGuid = file.guid
             }
            
             // this.handleConfirm()
+        }else{
+            this.files = [file.raw]
         }
     },
     handleConfirm() {