摘要:
由addRouters方法获取到后台的动态路由,要实现路由之间的跳转,不可直接用path: '***',而是将动态路由存储到vuex中,再从vuex中取得,如:this.$store.menu.navTree.children.path. 阅读全文
摘要:
缓存路由页面的当前状态; 1 <transition name="fade" mode="out-in"> 2 <keep-alive> 3 <router-view v-if="$route.meta.keepAlive"></router-view> 4 </keep-alive> 5 </tr 阅读全文