vue无法跳转子路由

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

核心代码如下:

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

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

原文地址:https://www.cnblogs.com/chenyingying0/p/12770482.html