Parcourir la source

选择 教育培训 知识库文件第二次回报错

zhulu il y a 1 an
Parent
commit
d4a8eb170f
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/views/core/edu/plan/index.vue

+ 3 - 0
src/views/core/edu/plan/index.vue

@@ -997,6 +997,9 @@ export default {
       let tempArry = [];
       let fileNameList = [];
       let addFileNameList = [];
+      if(this.form.fileList==null)  {
+        this.form.fileList=[];
+      }    
       this.form.fileList.forEach((x) => {
         let fileObj = JSON.parse(x);
         fileNameList.push(fileObj.name);