add 404 page

This commit is contained in:
landaiqing
2024-08-11 19:36:42 +08:00
parent b40c9c3036
commit fea8b9df2d
10 changed files with 594 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
export default [
{
path: '/404',
name: '404',
component: () => import('@/views/404/NotFound.vue'),
meta: {
requiresAuth: false,
title: '404'
}
}
];

View File

@@ -9,14 +9,21 @@ import {message} from "ant-design-vue";
import {close, start} from '@/utils/nprogress/nprogress.ts';
import qrlogin from "@/router/modules/qrlogin.ts";
import resetpass from "@/router/modules/resetpass.ts";
import notFound from "@/router/modules/notFound.ts";
const routes: Array<RouteRecordRaw> = [
...login,
...qrlogin,
...resetpass,
...notFound,
...test,
...test2,
{
path: '/:pathMatch(.*)',
redirect: '/404',
hidden: true
}
];
const router: Router = createRouter({