vue 数据更新但视图不更新处理方式
1、$nextTick
this.$nextTick(() => { this.checkbox = xxx });
2、$forceUpdate
this.$forceUpdate()
3、使用v-if强制重新渲染
this.$nextTick(() => { this.checkbox = xxx });
2、$forceUpdate
this.$forceUpdate()
3、使用v-if强制重新渲染