Explorar o código

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

zhulu %!s(int64=2) %!d(string=hai) anos
pai
achega
ab962baefc
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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() {