你好,我在change事件绑定的函数中,进行了操作list,就是给list中的对象添加属性等操作,但是不能实时响应到页面中,怎么解决呢?

1***@qq.com
- 发布:2020-08-05 15:33
- 更新:2020-08-06 12:35
- 阅读:553

1***@qq.com (作者)
level="4"
@change="handleChange"
@confirm="handelconfirm">
</pickerr>
data(){
return{
areaList:[]
}
}
handleChange (e){
var that=this;
if(e.change === 'init'||e.change === 'scroll'){
console.log(e);
uni.request({
url:,
method:"GET",
success(data) {
that.areaList[e.index[0]].districts[e.index[1]].districts[e.index[2]].districts=data.data.data;
that.$set(that.areaList[e.index[0]].districts[e.index[1]].districts[e.index[2]],'districts',data.data.data);
}
})
}
1***@qq.com (作者)
小程序端
2020-08-06 12:35