|
@@ -33,7 +33,7 @@ const routes = [
|
|
|
component: List,
|
|
component: List,
|
|
|
children:[
|
|
children:[
|
|
|
{
|
|
{
|
|
|
- path:'detail',
|
|
|
|
|
|
|
+ path:'detail/:xxx',
|
|
|
// 路由懒加载
|
|
// 路由懒加载
|
|
|
component: () => import("../views/Detail.vue")
|
|
component: () => import("../views/Detail.vue")
|
|
|
}
|
|
}
|
|
@@ -46,7 +46,9 @@ const router = new VueRouter({
|
|
|
// 模式 history/hash
|
|
// 模式 history/hash
|
|
|
mode:'hash',
|
|
mode:'hash',
|
|
|
base:process.env.BASE_URL,
|
|
base:process.env.BASE_URL,
|
|
|
- routes
|
|
|
|
|
|
|
+ routes,
|
|
|
|
|
+ // 全局配置高亮类
|
|
|
|
|
+ linkActiveClass:"active"
|
|
|
})
|
|
})
|
|
|
// 抛出路由表
|
|
// 抛出路由表
|
|
|
export default router;
|
|
export default router;
|