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