首页 > Web开发 > 详细

vuejs-no-side-effects-in-computed-properties

时间:2018-04-07 19:22:52      阅读:2644      评论:0      收藏:0      [点我收藏+]
watch: {
totalCount: function() {
if (!this.totalCount) {
this.fold = false;
return false;
}
},
fold: function(totalCount) {
let show = this.fold;
if (show) {
this.$nextTick(() => {
if (!this.scroll) {
this.scroll = new BScroll(this.$refs.listContent, {
click: true
});
} else {
this.scroll.refresh();
}
});
}
return show;
}
},

vuejs-no-side-effects-in-computed-properties

原文:https://www.cnblogs.com/x-4k/p/8734277.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!