Merge branch 'dev/net' into develop
This commit is contained in:
commit
5480683152
1 changed files with 10 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ watch(provinceId, async (v) => {
|
|||
});
|
||||
|
||||
watch(districtId, async (v) => {
|
||||
subDistrictId.value = undefined;
|
||||
await fetchSubDistrict(v);
|
||||
});
|
||||
|
||||
|
|
@ -72,6 +73,15 @@ watch(subDistrictId, async (v) => {
|
|||
?.filter((x) => x.id === v)
|
||||
.map((x) => x.zipCode)[0] ?? '';
|
||||
});
|
||||
|
||||
watch(provinceId, (v) => {
|
||||
if (v) {
|
||||
addrOptions.value.districtOps = [];
|
||||
addrOptions.value.subDistrictOps = [];
|
||||
districtId.value = undefined;
|
||||
subDistrictId.value = undefined;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
<q-dialog full-width v-model="modal">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue