From 875fdb575ea8019a993ce32595f1d3b6365c9646 Mon Sep 17 00:00:00 2001
From: dsgler <1832002325@qq.com>
Date: Tue, 23 Dec 2025 15:19:59 +0800
Subject: [PATCH] faet: add 404 page
---
src/router/index.ts | 5 ++++-
src/views/notFound/index.vue | 21 +++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
create mode 100644 src/views/notFound/index.vue
diff --git a/src/router/index.ts b/src/router/index.ts
index 50dd039..ff3c195 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -14,7 +14,10 @@ const router = createRouter({
},
...appRoutes,
NO_PERMISSION,
- // DETAIL,
+ {
+ path: '/:pathMatch(.*)',
+ component: import('@/views/notFound/index.vue'),
+ },
],
scrollBehavior(_to, _from, savedPosition) {
if (savedPosition) {
diff --git a/src/views/notFound/index.vue b/src/views/notFound/index.vue
new file mode 100644
index 0000000..edc1baa
--- /dev/null
+++ b/src/views/notFound/index.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+ 返回主页
+
+
+
+
+
+
+
+
+