vuefy icon indicating copy to clipboard operation
vuefy copied to clipboard

computed不执行

Open zenonux opened this issue 6 years ago • 1 comments

如果computed依赖两个对象数组计算。修改对象的属性不会重新计算

zenonux avatar Dec 22 '18 06:12 zenonux

computed(this, { like_total: function () { return this.data.list.reduce(function(total, item){ return total + item.likes }, 0) } });

是的,应该跟我这个是同一个问题 @donghaohao

zhongjq avatar Apr 02 '19 09:04 zhongjq