From b0b672a7f8a700f8ac1c32bd18eaac4ec5791845 Mon Sep 17 00:00:00 2001 From: Aykan A Date: Mon, 13 Mar 2023 23:52:15 +0300 Subject: [PATCH] Update index.ts +404 Page --- src/router/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index 02e9668a..ec9c255c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -155,6 +155,14 @@ const routes: RouteRecordRaw[] = [ }, component: () => import(/* webpackChunkName: "403" */ '../views/403.vue'), }, + { + path: '/:pathMatch(.*)*', + name: '404', + meta: { + title: '未找到', + }, + component: () => import(/* webpackChunkName: "404" */ '../views/404.vue'), +} ]; const router = createRouter({