Browse Source

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

EvilDragon 3 months ago
parent
commit
1dd559fd00
1 changed files with 2 additions and 1 deletions
  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,