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**************************")
})

 

posted @ 2018-08-02 19:26  仔行天下  阅读(556)  评论(0编辑  收藏  举报