.
This commit is contained in:
parent
4d8e4f7b3e
commit
a27eda7124
@ -156,12 +156,12 @@ const onlyNumber = (e) => {
|
||||
};
|
||||
|
||||
const checkPhoneDuplicate = async () => {
|
||||
const currentPhone = form.value.phone;
|
||||
if (currentPhone === originalData.value.phone) {
|
||||
phoneDuplicated.value = false;
|
||||
return;
|
||||
}
|
||||
const res = await $api.get('/user/checkPhone', { params: { memberTel: form.value.phone } });
|
||||
console.log(res.data)
|
||||
phoneDuplicated.value = !res.data.data;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user