From 6bbbe243129bc345315fc1d1d981348a059c14be Mon Sep 17 00:00:00 2001 From: WangJunZzz <510423039@qq.com> Date: Fri, 6 Dec 2024 19:30:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E9=87=8D=E5=A4=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- vben28/src/router/constant.ts | 2 ++ vben28/src/router/routes/basic.ts | 3 ++- vben28/src/router/routes/modules/tenant.ts | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index dfa9dfab3..c7388b539 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ bld/ [Bb]in/ [Oo]bj/ [Ll]og/ - +.DS_Store # Visual Studio 2015 cache/options directory .vs/ # Uncomment if you have tasks that create the project's static files in wwwroot diff --git a/vben28/src/router/constant.ts b/vben28/src/router/constant.ts index d39a67e56..68029a1f8 100644 --- a/vben28/src/router/constant.ts +++ b/vben28/src/router/constant.ts @@ -4,6 +4,8 @@ export const PARENT_LAYOUT_NAME = 'ParentLayout'; export const PAGE_NOT_FOUND_NAME = 'PageNotFound'; +export const PAGE_NOT_FOUND_NAME_PATH = 'PageNotFoundPath'; + export const EXCEPTION_COMPONENT = () => import('/@/views/sys/exception/Exception.vue'); /** diff --git a/vben28/src/router/routes/basic.ts b/vben28/src/router/routes/basic.ts index b92deea7e..6de261134 100644 --- a/vben28/src/router/routes/basic.ts +++ b/vben28/src/router/routes/basic.ts @@ -5,6 +5,7 @@ import { LAYOUT, EXCEPTION_COMPONENT, PAGE_NOT_FOUND_NAME, + PAGE_NOT_FOUND_NAME_PATH, } from '/@/router/constant'; // 404 on a page @@ -20,7 +21,7 @@ export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = { children: [ { path: '/:path(.*)*', - name: PAGE_NOT_FOUND_NAME, + name: PAGE_NOT_FOUND_NAME_PATH, component: EXCEPTION_COMPONENT, meta: { title: 'ErrorPage', diff --git a/vben28/src/router/routes/modules/tenant.ts b/vben28/src/router/routes/modules/tenant.ts index ce8a8334e..034070cf0 100644 --- a/vben28/src/router/routes/modules/tenant.ts +++ b/vben28/src/router/routes/modules/tenant.ts @@ -13,8 +13,8 @@ const tenant: AppRouteModule = { }, children: [ { - path: 'Tenant', - name: 'Tenant', + path: 'Page', + name: 'TenantPage', component: () => import('/@/views/tenants/Tenant.vue'), meta: { title: t('routes.tenant.tenantList'),