Selaa lähdekoodia

feat: 更新表单提交逻辑,移除空间专业类型字段并将其值转换为逗号分隔字符串

EvilDragon 3 kuukautta sitten
vanhempi
commit
1dd559fd00
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      packages/app/src/pages/mine/authentication/index.vue

+ 2 - 1
packages/app/src/pages/mine/authentication/index.vue

@@ -129,7 +129,8 @@ const handleSubmit = async () => {
     }
   } else {
     const toBeUpdate = {
-      ...omit(formData.value, []),
+      ...omit(formData.value, ['spatialExpertiseType']),
+      spatialExpertiseType: formData.value.spatialExpertiseType.join(','),
       attachment: attachment.value,
       id: userAuthInfo.value.id,
       gender: userInfo.value.sex,