Преглед на файлове

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

zhulu преди 1 година
родител
ревизия
d4a8eb170f
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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);