From c667f531aca1f65870cb29a67c2587c818c062f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Mon, 11 Sep 2023 17:21:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8E=A5=E5=8F=A3=E7=9C=8B=E6=9D=BF?= =?UTF-8?q?=E3=80=91404=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PC/InterFace.Dash/src/router/index.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/PC/InterFace.Dash/src/router/index.js b/PC/InterFace.Dash/src/router/index.js index d566d78..41aee17 100644 --- a/PC/InterFace.Dash/src/router/index.js +++ b/PC/InterFace.Dash/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({