Explorar el Código

机构名称、照片都会随机丢失

张田田 hace 10 meses
padre
commit
e6400e6d80
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/service/AddItems.vue

+ 1 - 1
src/service/AddItems.vue

@@ -181,7 +181,7 @@ function doSubmit() {
   formRef.value
     ?.validate()
     .then(() => {
-      form.photo = fileList.value[0]?.response?.url || '';
+      form.photo = fileList.value[0]?.response?.url || fileList.value[0]?.url || '';
       submit(form);
     })
     .catch(() => {