fixed is for me bug
This commit is contained in:
@@ -134,15 +134,14 @@ const handleSubmit = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => addressData.value.for_me,
|
() => [addressData.value.for_me, isShow.value],
|
||||||
(newValue) => {
|
([newValue, newValue2]) => {
|
||||||
if (!isEditing.value) {
|
if (!isEditing.value) {
|
||||||
addressData.value.phone = newValue == "بله" ? account.value!.phone : "";
|
addressData.value.phone = newValue == "بله" && newValue2 ? account.value?.phone ?? "" : "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true,
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
@@ -178,7 +177,7 @@ watch(
|
|||||||
<div class="grid w-full grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
<div class="grid w-full grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
||||||
<DataField
|
<DataField
|
||||||
id="name"
|
id="name"
|
||||||
label="نام پیش فرض"
|
label="نام پیش فرض آدرس"
|
||||||
>
|
>
|
||||||
<Input
|
<Input
|
||||||
id="name"
|
id="name"
|
||||||
|
|||||||
Reference in New Issue
Block a user