diff --git a/src/router/index.js b/src/router/index.js index a04b039bc..81199c32b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -344,21 +344,21 @@ export const asyncRouter = [ { path: '/', component: Layout, - redirect: '/dashboard', + redirect: '/trainingPlatform', hidden: true, meta: { roles: [admin, user] - }, - children: [ - { - path: 'dashboard', - component: Dashboard, - meta: { - i18n: 'router.homePage', - icon: 'dashboard' - } - } - ] + } + // children: [ + // { + // path: 'dashboard', + // component: Dashboard, + // meta: { + // i18n: 'router.homePage', + // icon: 'dashboard' + // } + // } + // ] }, { path: '/design/home', @@ -602,14 +602,6 @@ export const asyncRouter = [ path: 'home', component: TeachHome }, - // { - // // 课程详情 - // path: 'detail/:lessonId', - // component: TeachDetail, - // meta: { - // }, - // hidden: true - // }, { // 实训详情 path: 'practical/:trainingId/:lessonId', @@ -704,15 +696,14 @@ export const asyncRouter = [ redirect: '/trainingPlatform/home', component: TrainingPlatform, meta: { - i18n: 'router.trainingPlatform' }, children: [ { path: 'home', component: TrainingPlatformHome, meta: { - i18n: 'router.trainingPlatform' - } + }, + hidden: true }, { path: 'detail/:mapId/:prodId',