From 5ae634057af4e708b6865a5cbca4ccb72522ec50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Tue, 12 Sep 2023 14:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90STORE=E3=80=91404=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PC/UI.WinIn.FasterZ.Store/src/router/index.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/PC/UI.WinIn.FasterZ.Store/src/router/index.js b/PC/UI.WinIn.FasterZ.Store/src/router/index.js index d566d78..41aee17 100644 --- a/PC/UI.WinIn.FasterZ.Store/src/router/index.js +++ b/PC/UI.WinIn.FasterZ.Store/src/router/index.js @@ -45,6 +45,11 @@ export let constantRoutes = [ component: () => import('@/views/redirect/index') }] }, + { + path: '*', + redirect: '/404', + hidden: true + }, { path: '/login', component: () => import('@/views/login/index'), @@ -145,11 +150,11 @@ export let constantRoutes = [ export let asyncRoutes = [ /** when your routing map is too long, you can split it into small modules **/ // 404 page must be placed at the end !!! - { - path: '*', - redirect: '/404', - hidden: true - } + // { + // path: '*', + // redirect: '/404', + // hidden: true + // } ] const createRouter = () => new Router({