配置子路由:

      vue-route动态路由

 

路由的视图都需要使用view-router

子路由也可以嵌套路由使用: children来做嵌套如上图

使用location.页面name就可以做页面跳转

mounted:挂载,延迟跳转:setTimeout(function(){},10000)

vue-route动态路由

 

页面跳转的方式

vue-route动态路由

 

内容链接:https://router.vuejs.org/guide/essentials/named-routes.html

相关文章: