.
This commit is contained in:
parent
5a60012ce6
commit
4d8e4f7b3e
@ -156,6 +156,10 @@ const onlyNumber = (e) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const checkPhoneDuplicate = async () => {
|
const checkPhoneDuplicate = async () => {
|
||||||
|
if (currentPhone === originalData.value.phone) {
|
||||||
|
phoneDuplicated.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
const res = await $api.get('/user/checkPhone', { params: { memberTel: form.value.phone } });
|
const res = await $api.get('/user/checkPhone', { params: { memberTel: form.value.phone } });
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
phoneDuplicated.value = !res.data.data;
|
phoneDuplicated.value = !res.data.data;
|
||||||
@ -258,7 +262,4 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.text-red-500 {
|
|
||||||
color: #f56565;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user