vue 进入页面后组件未刷新
组件中,加一个isShow
<popup-notice v-if="isShow" />
mounted 钩子中使用
this.isShow = false
this.$nextTick(() => {
setTimeout(() => { this.isShow = true }, 200)
})
组件中,加一个isShow
<popup-notice v-if="isShow" />
mounted 钩子中使用
this.isShow = false
this.$nextTick(() => {
setTimeout(() => { this.isShow = true }, 200)
})