1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
570 B

// import zhCnNames from './names'
// import addressJson from './provinceList'
const AddressJson=require('./provinceList.json')
const filterCity = ['行政区划']
AddressJson.forEach(item => {
if (item.children) {
item.children.forEach((city, cityIndex) => {
const index = ~filterCity.findIndex(filter => ~city.name.indexOf(filter))
if (index) {
item.children = item.children.concat(city.children || [])
item.children.splice(cityIndex, 1)
}
})
}
})
export default AddressJson