diff --git a/src/assets/404.png b/src/assets/404.png new file mode 100644 index 0000000..514650d Binary files /dev/null and b/src/assets/404.png differ diff --git a/src/router/index.ts b/src/router/index.ts index 18d785c..90180e8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -23,6 +23,16 @@ const routes: RouteRecordRaw[] = [ name: "Login", component: () => import("@/views/login/index.vue"), }, + { + path: "/404", + name: "404", + component: () => import("@/views/404.vue"), + }, + { + path: "/:pathMatch(.*)*", + name: "NotFound", + component: () => import("@/views/404.vue"), + }, { path: "/layout", name: "Layout", @@ -49,11 +59,6 @@ const routes: RouteRecordRaw[] = [ }, ], }, - { - path: '/:pathMatch(.*)*', - name: 'NotFound', - component: () => import('@/views/404.vue') - } ], }, diff --git a/src/views/404.vue b/src/views/404.vue new file mode 100644 index 0000000..26b0a03 --- /dev/null +++ b/src/views/404.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue index 574b9fd..7a02a9a 100644 --- a/src/views/layout/index.vue +++ b/src/views/layout/index.vue @@ -16,7 +16,9 @@ @click="({ key }) => handleMenuClick(key)" /> -
+
+ +