แก้ ที่อยู่ รับโอน component ทะเบียนบ้างส่วนประวัติ

This commit is contained in:
Thanit Konmek 2023-08-03 14:49:17 +07:00
parent e64b68c017
commit 8c1a5d9b23
17 changed files with 5864 additions and 25 deletions

View file

@ -626,8 +626,6 @@ const getNewData = async () => {
await fetchDistrict(addressData.value.provinceIdC, "2");
await fetchSubDistrict(addressData.value.districtId, "1");
await fetchSubDistrict(addressData.value.districtIdC, "2");
await selectSubDistrict(addressData.value.subdistrictId, "1");
await selectSubDistrict(addressData.value.subdistrictIdC, "2");
};
const fetchData = async () => {
@ -797,7 +795,7 @@ const fetchProvince = async () => {
};
const fetchDistrict = async (id: string | null, position: string) => {
if (id != null) {
if (id != null && id != "") {
loaderPage(true);
await http
.get(config.API.listDistrict(id))
@ -825,7 +823,7 @@ const fetchDistrict = async (id: string | null, position: string) => {
};
const fetchSubDistrict = async (id: string | null, position: string) => {
if (id != null) {
if (id != null && id != "") {
loaderPage(true);
await http
.get(config.API.listSubDistrict(id))