组件中,加一个isShow
<popup-notice v-if="isShow" />
mounted 钩子中使用
this.isShow = false this.$nextTick(() => { setTimeout(() => { this.isShow = true }, 200) })