Browse Source

fix: 修复路由名称重复导致启动失败

example
WangJunZzz 2 years ago
parent
commit
7168b3fe02
  1. 24
      vben28/src/router/routes/basic.ts
  2. 4
      vben28/src/router/routes/modules/tenant.ts

24
vben28/src/router/routes/basic.ts

@ -17,18 +17,18 @@ export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
hideBreadcrumb: true,
hideMenu: true,
},
children: [
{
path: '/:path(.*)*',
name: PAGE_NOT_FOUND_NAME,
component: EXCEPTION_COMPONENT,
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
hideMenu: true,
},
},
],
// children: [
// {
// path: '/:path(.*)*',
// name: PAGE_NOT_FOUND_NAME,
// component: EXCEPTION_COMPONENT,
// meta: {
// title: 'ErrorPage',
// hideBreadcrumb: true,
// hideMenu: true,
// },
// },
//],
};
export const REDIRECT_ROUTE: AppRouteRecordRaw = {

4
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'),

Loading…
Cancel
Save