vuex的一个坑

1  error in callback for watcher "function (){ return this._data.$$state }"

 

用深拷贝解决

 

2 接口依赖:

var that=this;
this.getBeixuanList(Object.assign(JSON.parse(JSON.stringify(this.mpramas)),{fenpin:fenpin}))
.then(function(res){
that.InitData(that.mpramas);
console.log("res*********************")
})
.catch(function(err){
console.log("err**************************")
})

 

文章来自:https://www.cnblogs.com/wulinzi/p/9409345.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3