码迷,mamicode.com
首页 > 其他好文 > 详细

vuex的一个坑

时间:2018-08-02 20:42:27      阅读:2848      评论:0      收藏:0      [点我收藏+]

标签:hat   parse   watcher   object   ror   拷贝   ssi   cti   ***   

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

 

vuex的一个坑

标签:hat   parse   watcher   object   ror   拷贝   ssi   cti   ***   

原文地址:https://www.cnblogs.com/wulinzi/p/9409345.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!