BUG优化 人员类型不显示

dev
xiepeng 2024-05-23 15:57:05 +08:00
parent ad35c2cf4c
commit 6c6086a63d
1 changed files with 10 additions and 8 deletions

View File

@ -741,14 +741,16 @@ const router = useRouter();
const { USER_ID } = route.query; const { USER_ID } = route.query;
const fnHasEmail = async (rule, value, callback) => { const fnHasEmail = async (rule, value, callback) => {
if (value) { if (value) {
try { const result = await getVerifyDuplicateEmail({
await getVerifyDuplicateEmail({
EMAIL: value, EMAIL: value,
PHONE: data.form.PHONE, PHONE: data.form.PHONE
}); });
if(USER_ID) {
if(result.pd) {
if(result.pd.EMAIL === value && result.pd.PHONE === data.form.PHONE) {
callback(); callback();
} catch { }else callback(new Error("邮箱重复"))
callback(new Error("邮箱重复")); }else callback();
} }
} else { } else {
callback(); callback();