开心每一天1111
子路由 second 的路径应该是 'second' 如下path: '/first',children: [
{ path: 'second'
}
]vue-router会拼接成 /first/second’如果你 子路由写成 '/second' vue-router会认为他是根路径 最后得到的路径是 /second 不会是/first/second 也就是说你导航到/first/second 这个路由的时候页面会找不到,但是此时可以找到 /second这个路由