// 获取下标
this.pickerIndex = res.data.findIndex(item => item.name ==this.townArrIndex)
//如果找不到默认第一位
if(this.pickerIndex == '-1') {
this.pickerIndex=0
}
// 获取下标
this.pickerIndex = res.data.findIndex(item => item.name ==this.townArrIndex)
//如果找不到默认第一位
if(this.pickerIndex == '-1') {
this.pickerIndex=0
}