แก้ ที่อยู่ รับโอน component ทะเบียนบ้างส่วนประวัติ
This commit is contained in:
parent
e64b68c017
commit
8c1a5d9b23
17 changed files with 5864 additions and 25 deletions
|
|
@ -123,8 +123,6 @@ const getNewData = async () => {
|
|||
await fetchDistrict(addressData.value.currentProvinceId, "2");
|
||||
await fetchSubDistrict(addressData.value.registDistrictId, "1");
|
||||
await fetchSubDistrict(addressData.value.currentDistrictId, "2");
|
||||
await selectSubDistrict(addressData.value.registSubDistrictId, "1");
|
||||
await selectSubDistrict(addressData.value.currentSubDistrictId, "2");
|
||||
};
|
||||
|
||||
const editData = async () => {
|
||||
|
|
@ -247,7 +245,7 @@ const fetchProvince = async () => {
|
|||
};
|
||||
|
||||
const fetchDistrict = async (id: string | null, position: string) => {
|
||||
if (id != null) {
|
||||
if (id != null && id != "") {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listDistrict(id))
|
||||
|
|
@ -275,7 +273,7 @@ const fetchDistrict = async (id: string | null, position: string) => {
|
|||
};
|
||||
|
||||
const fetchSubDistrict = async (id: string | null, position: string) => {
|
||||
if (id != null) {
|
||||
if (id != null && id != "") {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listSubDistrict(id))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue