其他分享
首页 > 其他分享> > vue无法跳转子路由

vue无法跳转子路由

作者:互联网

vue想要跳转到子路由,必须使用router-view挂载子路由

核心代码如下:

 

 

router/index.js中子路由的写法:

 

 

跳转到子路由页面之后,父路由的页面内容也会一起显示出来

 

标签:到子,vue,转子,跳转,router,路由,页面
来源: https://www.cnblogs.com/chenyingying0/p/12770482.html