✨ add 404 page
This commit is contained in:
11
src/router/modules/notFound.ts
Normal file
11
src/router/modules/notFound.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export default [
|
||||
{
|
||||
path: '/404',
|
||||
name: '404',
|
||||
component: () => import('@/views/404/NotFound.vue'),
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
title: '404'
|
||||
}
|
||||
}
|
||||
];
|
@@ -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({
|
||||
|
Reference in New Issue
Block a user