Merge branch 'dev/net' into develop

This commit is contained in:
Net 2024-04-10 12:19:22 +07:00
commit 5480683152

View file

@ -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">