From 3cffe1c582f48ec41eef0a6fe2b4367fc0dbf3de Mon Sep 17 00:00:00 2001 From: roger_home_pc Date: Tue, 31 Oct 2023 22:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9F=BA=E6=9C=AC=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/router/index.js b/src/router/index.js index d5d5687..17bdd45 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -52,6 +52,11 @@ const routes = [ } ]; +const route404 = { + path:" /:pathMatch(.*)*", + name: "404", + redirect: "/404" +} const router = createRouter({history: createWebHashHistory(), routes}) router.beforeEach((to) => {