From e2ee048f561e5d2cc79bd48e6003662ca4f90a8f Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 23 Sep 2019 18:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=88=86=E5=8C=96=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) 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',