diff --git a/src/views/enterprise_management/user_practitioner/edit.vue b/src/views/enterprise_management/user_practitioner/edit.vue index 198a93f..b93a064 100644 --- a/src/views/enterprise_management/user_practitioner/edit.vue +++ b/src/views/enterprise_management/user_practitioner/edit.vue @@ -741,14 +741,16 @@ const router = useRouter(); const { USER_ID } = route.query; const fnHasEmail = async (rule, value, callback) => { if (value) { - try { - await getVerifyDuplicateEmail({ - EMAIL: value, - PHONE: data.form.PHONE, - }); - callback(); - } catch { - callback(new Error("邮箱重复")); + const result = await getVerifyDuplicateEmail({ + EMAIL: value, + PHONE: data.form.PHONE + }); + if(USER_ID) { + if(result.pd) { + if(result.pd.EMAIL === value && result.pd.PHONE === data.form.PHONE) { + callback(); + }else callback(new Error("邮箱重复")) + }else callback(); } } else { callback();