|
@@ -631,7 +631,7 @@ export default {
|
|
|
await this.getCallbackPosition(this.formData.provinceId, this.formData.cityId, 'city', 'lbsId')
|
|
|
await this.getCallbackPosition(this.formData.cityId, this.formData.areaId, 'area', 'lbsId')
|
|
|
const temp = this.areaList.find(k => this.formData.cityId == k.value)
|
|
|
- if(temp &&!Object.keys(this.specialCity).includes(temp.parentLbsId)){
|
|
|
+ if(!temp && !temp?.parentLbsId && !Object.keys(this.specialCity).includes(temp?.parentLbsId)){
|
|
|
await this.getCallbackPosition(this.formData.areaId, this.formData.streetId, 'street', 'lbsId')
|
|
|
}
|
|
|
}
|
|
@@ -774,7 +774,7 @@ export default {
|
|
|
const temps = this.areaList.filter(k=>{
|
|
|
return k.lbsId === value
|
|
|
})
|
|
|
- if (value && this.areaList.length && Object.keys(this.specialCity).includes(temps[0].parentLbsId)) {
|
|
|
+ if (value && this.areaList.length && temps.length && temps[0]?.parentLbsId && Object.keys(this.specialCity).includes(temps[0]?.parentLbsId)) {
|
|
|
this.streetList = temps
|
|
|
this.formData.streetId = value
|
|
|
this.handleArea(value, 'street')
|
|
@@ -898,7 +898,7 @@ export default {
|
|
|
await this.getCallbackPosition(this.formData.provinceId, city, 'city')
|
|
|
await this.getCallbackPosition(this.formData.cityId, area, 'area')
|
|
|
const temp = this.areaList.find(k => this.formData.cityId == k.value)
|
|
|
- if( temp && !Object.keys(this.specialCity).includes(temp.parentLbsId)){
|
|
|
+ if( !temp && !temp?.parentLbsId && !Object.keys(this.specialCity).includes(temp?.parentLbsId)){
|
|
|
await this.getCallbackPosition(this.formData.areaId, street, 'street')
|
|
|
}
|
|
|
},
|