This commit is contained in:
asd
2019-12-09 11:32:31 +08:00
parent 1ab4e876b2
commit 7811e0fbce

View File

@@ -299,3 +299,25 @@ export default {
4.访问时 的路径 localhost:8080/#/父路由名/子组件名
全部代码
```
const routes = [
{ path: "/a/:id", component: aa },
{
path: "/b",
component: bb,
// beforeEnter:(to,from,next)=>{
// window.console.log(to,"aaassjlfml;")
// next()
// },
children: [
// {path:'/',component:bb},
{path:'c',component:c},
{path:'d',component:d},
]
},
]
```