Explorar el Código

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

zhulu hace 2 años
padre
commit
ab962baefc
Se han modificado 1 ficheros con 8 adiciones y 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() {