From bee02afe25b5c662424def61efcda6bf64acb2a2 Mon Sep 17 00:00:00 2001 From: dsgler <1832002325@qq.com> Date: Tue, 23 Dec 2025 15:14:28 +0800 Subject: [PATCH] feat: add 404 page --- src/router/index.ts | 4 ++++ src/views/notFound/index.vue | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/views/notFound/index.vue diff --git a/src/router/index.ts b/src/router/index.ts index 24a9f789..caa40497 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -44,6 +44,10 @@ const router = createRouter({ ...appRoutes, NO_PERMISSION, + { + path: '/:pathMatch(.*)', + component: import('@/views/notFound/index.vue'), + }, ], scrollBehavior() { return { top: 0 }; diff --git a/src/views/notFound/index.vue b/src/views/notFound/index.vue new file mode 100644 index 00000000..edc1baab --- /dev/null +++ b/src/views/notFound/index.vue @@ -0,0 +1,21 @@ + + + + +