fix(个人中心): 个人信息手机号格式优化

--bug=1037334 --user=王旭 【个人中心】个人信息手机号格式优化 https://www.tapd.cn/55049933/s/1482767
This commit is contained in:
WangXu10 2024-03-28 14:20:40 +08:00 committed by 刘瑞斌
parent 739727c04a
commit 289b1471ec
1 changed files with 2 additions and 1 deletions

View File

@ -139,6 +139,7 @@
import { getBaseInfo, updateBaseInfo } from '@/api/modules/user';
import { useI18n } from '@/hooks/useI18n';
import useUserStore from '@/store/modules/user/index';
import { formatPhoneNumber } from '@/utils';
import { validateEmail, validatePhone } from '@/utils/validate';
import { OrganizationProjectListItem } from '@/models/user';
@ -174,7 +175,7 @@
},
{
label: t('ms.personal.phone'),
value: userStore.phone || '',
value: formatPhoneNumber(userStore.phone || ''),
},
{
label: t('ms.personal.org'),