zs 6 mesiacov pred
rodič
commit
5dae6fdda6
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      src/views/center/parts/incubator.vue

+ 2 - 1
src/views/center/parts/incubator.vue

@@ -324,7 +324,8 @@ const search = async () => {
     let res = await incubatorStore.query({ user: user.value.id })
     if (res.errcode == '0') {
       if (!res.data[0].logo) res.data[0].logo = []
-      form.value = res.data[0] || { logo: [] }
+      if (!res.data[0].file) res.data[0].file = []
+      form.value = res.data[0] || { logo: [], file: [] }
     }
   }
 }