Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: refine 404 page define
  • Loading branch information
SharerMax committed Oct 14, 2025
commit cf9c31ad44126cd031f26a9b42fc17f4e2d43014
3 changes: 2 additions & 1 deletion src/utils/route/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const LAYOUT = () => import('@/layouts/index.vue');
export const BLANK_LAYOUT = () => import('@/layouts/blank.vue');
export const IFRAME = () => import('@/layouts/components/FrameBlank.vue');
export const EXCEPTION_COMPONENT = () => import('@/pages/result/500/index.vue');
export const PAGE_NOT_FOUND_COMPONENT = () => import('@/pages/result/404/index.vue');
export const PARENT_LAYOUT = () =>
new Promise((resolve) => {
resolve({ name: 'ParentLayout' });
Expand All @@ -12,5 +13,5 @@ export const PARENT_LAYOUT = () =>
export const PAGE_NOT_FOUND_ROUTE: RouteRecordRaw = {
path: '/:pathMatch(.*)*',
name: '404Page',
redirect: '/result/404',
component: PAGE_NOT_FOUND_COMPONENT,
};