vue 进入页面后组件未刷新

组件中,加一个isShow

<popup-notice v-if="isShow" />

mounted  钩子中使用

      this.isShow = false
      this.$nextTick(() => {
        setTimeout(() => { this.isShow = true }, 200)
    })

  

posted @ 2022-07-01 09:35  。啊月  阅读(150)  评论(0编辑  收藏  举报