明细已写进数据,但获取都是空数据(如首行)
console.log(this.data.companyinfo)
输出为 空
----------------------------------------------------------------------------------------------------------------------------------------------------
代码:
data: {
companyid:999,
reserror: 0,
resmsg: '',
companyinfo: {city: "北京"},
},
console.log('companyinfo before :', this.data.companyinfo)
this.getcompanyinfo(this.data.companyid)
console.log('companyinfo After :', this.data.companyinfo)
执行结果:
1.执行顺序,有问题?
https://developers.weixin.qq.com/community/develop/article/doc/000e44327987507f22fd6399e56c13