@@ -246,7 +246,12 @@
funGetChinaArea () {
getChinaArea().then(res => {
if (res.status) {
- this.columnsOfCity = res.data.filter(item => item.text === '浙江')
+ this.columnsOfCity = res.data.filter(province => province.text === '浙江').map(province => {
+ return {
+ ...province,
+ children: province.children.filter(city => city.text === '杭州')
+ }
+ })
}
})
},