vue强制刷新组件 <component v-if="hackReset"></component>(组件名称) data:hackReset (事件执行) this.hackReset = false this.$nextTick(() => { this.hackReset = true })