实现V4目录管理后台前端
This commit is contained in:
@@ -178,6 +178,15 @@ export const router = createRouter({
|
||||
permission: 'HOTEL_MANAGE',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'reservation-catalogs',
|
||||
name: 'system-reservation-catalogs',
|
||||
component: () => import('@/views/system/SystemReservationCatalogsView.vue'),
|
||||
meta: {
|
||||
titleKey: 'nav.systemReservationCatalogs',
|
||||
permission: 'RESERVATION_CATALOG_MANAGE',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'audits',
|
||||
name: 'system-audits',
|
||||
@@ -258,5 +267,8 @@ function resolveSystemAdminEntryPath(authStore: AuthStore): string {
|
||||
if (authStore.hasPermission('HOTEL_MANAGE')) {
|
||||
return '/system/hotels'
|
||||
}
|
||||
if (authStore.hasPermission('RESERVATION_CATALOG_MANAGE')) {
|
||||
return '/system/reservation-catalogs'
|
||||
}
|
||||
return '/system/audits'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user