diff --git a/components/region-select/index.vue b/components/region-select/index.vue
index f68edf0..e151678 100644
--- a/components/region-select/index.vue
+++ b/components/region-select/index.vue
@@ -19,13 +19,19 @@
{{ c.name }}
-
+
{{ d.name }}
@@ -119,6 +125,7 @@ export default {
.filter(key => res.data[key])
.filter(key => !res.data?.data?.[`${key}Data`])
.reverse()
+ console.log(needSelected, 'needSelected')
if (
needSelected?.length &&
Object.keys(res.data?.data || {}).length < needSelected?.length
@@ -180,6 +187,7 @@ export default {
}
}
})
+
this.cityList.forEach(item => {
const province = this.provinceList.find(
province => province.pkId === item.parent
@@ -192,6 +200,8 @@ export default {
}
}
})
+ this.provinceList = this.provinceList.filter(item => item.children)
+ this.cityList = this.cityList.filter(item => item.children)
this.cityList = this.provinceList[this.pickerValue[0]].children
this.countyList = this.cityList[this.pickerValue[1]].children
},