配置子路由:

      vue-route动态路由

 

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

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

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

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

vue-route动态路由

 

页面跳转的方式

vue-route动态路由

 

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

相关文章:

  • 2021-07-22
  • 2022-12-23
  • 2021-06-04
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2021-12-04
  • 2021-11-15
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案