vue_router 动态路由

配置子路由:

      

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

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

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

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

页面跳转的方式

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

原文地址:https://www.cnblogs.com/wuzaipei/p/9505560.html