Skip to content

Commit

Permalink
fix:email和phone空继承时,将’--’改为'' (#1937)
Browse files Browse the repository at this point in the history
Co-authored-by: JoJohw <v_hhwhhuang@tencent.com>
  • Loading branch information
JoJohw and JoJohw authored Sep 14, 2024
1 parent 880549e commit 86f5576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/src/views/personal-center/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ const changeEmail = async () => {
patchUsersEmail({
id: currentUserInfo.value.id,
is_inherited_email: currentUserInfo.value.is_inherited_email,
custom_email: currentUserInfo.value.custom_email,
custom_email: currentUserInfo.value.custom_email === '--' ? '' : currentUserInfo.value.custom_email,
}).then(() => {
isEditEmail.value = false;
isEditing();
Expand Down Expand Up @@ -766,7 +766,7 @@ const changePhone = () => {
patchUsersPhone({
id: currentUserInfo.value.id,
is_inherited_phone: currentUserInfo.value.is_inherited_phone,
custom_phone: currentUserInfo.value.custom_phone,
custom_phone: currentUserInfo.value.custom_phone === '--' ? '' : currentUserInfo.value.custom_phone,
custom_phone_country_code: currentUserInfo.value.custom_phone_country_code,
}).then(() => {
isEditPhone.value = false;
Expand Down

0 comments on commit 86f5576

Please sign in to comment.