vue 強制刷新

1、在要強制刷新的父組件中註冊reload方法 reload() { this.isRouterAlive = false this.$nextTick(function() { this.isRouterAlive = true console.log('reload') }) }, 控制router-view的顯示與隱藏 <router-view v-if="is
相關文章
相關標籤/搜索