一般正常
screen_areas:[
"青羊區(qū)",
"雙流區(qū)",
"高新區(qū)",
"武侯區(qū)"
],
//點(diǎn)擊事件
click:function(index){
//這樣修改有時(shí)不會(huì)刷新界面
this.screen_areas[1] = "郫都區(qū)"
//這時(shí)我們需要使用另外一只設(shè)置值的方式
this.$set(this.screen_areas,index,'郫都區(qū)')//這樣就可以正常顯示了
//如果是字典的話this.$set(this.dict,key,value)
}