From 76b12328ee2c2d575ae6d72809d9e7a54d77853c Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Fri, 19 Mar 2021 08:27:23 +0800 Subject: [PATCH] xial --- client/src/router/index.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/client/src/router/index.js b/client/src/router/index.js index 2482531..01247ce 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -46,12 +46,7 @@ export const constantRoutes = [ component: () => import('@/views/dashboard/index'), meta: { title: '首页', icon: 'dashboard' } }] - }, - { - path: '/404', - component: () => import('@/views/404'), - hidden: true - }, + } ] /** @@ -247,9 +242,9 @@ export const asyncRoutes = [ ] }, { - path: '/changepassword', + path: 'changepassword', component: Layout, - redirect: '/changepassword', + redirect: 'changepassword', name: 'ChangePW', meta: { title: '修改密码', icon: 'tree' }, hidden:true, @@ -262,9 +257,7 @@ export const asyncRoutes = [ hidden: true }, ] - }, - // 404 page must be placed at the end !!! - { path: '*', redirect: '/404', hidden: true } + } ] const createRouter = () => new Router({