hookehuyr

🐞 fix: partner字段可以为空,后端优化

1 <!-- 1 <!--
2 * @Date: 2022-09-30 09:53:14 2 * @Date: 2022-09-30 09:53:14
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-10-24 15:54:12 4 + * @LastEditTime: 2022-11-03 11:03:49
5 * @FilePath: /swx/src/pages/editInfo/index.vue 5 * @FilePath: /swx/src/pages/editInfo/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -284,7 +284,7 @@ const onSubmit = async (val) => { ...@@ -284,7 +284,7 @@ const onSubmit = async (val) => {
284 age_group: age_group.value, 284 age_group: age_group.value,
285 status: user_status.value, 285 status: user_status.value,
286 type: user_type.value, 286 type: user_type.value,
287 - partner: user_partner.value.key, 287 + partner: user_partner.value.key ? user_partner.value.key : '',
288 } 288 }
289 const { code, data } = await editMemberAPI(params); 289 const { code, data } = await editMemberAPI(params);
290 if (code) { 290 if (code) {
......