vue 数据更新但视图不更新处理方式

duck不必 / 2024-10-10 / 原文

1、$nextTick
this.$nextTick(() => {
  this.checkbox = xxx
});

2、$forceUpdate

this.$forceUpdate()

3、使用v-if强制重新渲染