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