Ver Fonte

解决计划选择学习资料失败

zhulu há 2 anos atrás
pai
commit
ab962baefc
1 ficheiros alterados com 8 adições e 1 exclusões
  1. 8 1
      src/views/core/edu/plan/index.vue

+ 8 - 1
src/views/core/edu/plan/index.vue

@@ -632,7 +632,14 @@ export default {
       list.forEach(x => {
         tempArry=tempArry.concat(x.fileList);
       })
-      this.formFileListDefualtValue =this.form.fileList.concat(tempArry);
+      console.log("tempArry",tempArry,this.form.fileList);
+      if(this.form.fileList){
+        this.formFileListDefualtValue =this.form.fileList.concat(tempArry);
+      }
+      else{
+        this.formFileListDefualtValue =tempArry;
+      }
+      
     },
   },
   mounted() {