当前vue路由组件从新加载

利用v-if控制router-view,在根组件APP.vue中实现一个刷新方法 <template> <router-view v-if="isRouterAlive"/> </template> <script> export default { data () { return { isRouterAlive: true } }, methods: { re
相关文章
相关标签/搜索