.
This commit is contained in:
parent
5a60012ce6
commit
4d8e4f7b3e
@ -156,6 +156,10 @@ const onlyNumber = (e) => {
|
||||
};
|
||||
|
||||
const checkPhoneDuplicate = async () => {
|
||||
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;
|
||||
@ -258,7 +262,4 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.text-red-500 {
|
||||
color: #f56565;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user