Vue 路由的嵌套
1.配置路由
const routes = [{ path: '/User', component: User, children: [{ path: 'OP1', component: OP1 },//注意子路由的路徑寫法這里不加/ { path: 'OP2', component: OP2 } ] } ]
2.父路由里配置子路由顯示的地方<router-view></router-view>
轉載于:https://www.cnblogs.com/changedman/p/9223263.html
總結
- 上一篇: xgboost调参指南
- 下一篇: vue 引用 vue-resource步