Restore file management entry
This commit is contained in:
@@ -27,6 +27,7 @@ const modules = import.meta.glob([
|
||||
'./langs/*/announcement.json',
|
||||
'./langs/*/authentication.json',
|
||||
'./langs/*/common.json',
|
||||
'./langs/*/file-manager.json',
|
||||
'./langs/*/loginLog.json',
|
||||
'./langs/*/menu.json',
|
||||
'./langs/*/menu-title.json',
|
||||
|
||||
@@ -28,6 +28,8 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
|
||||
'../views/_core/dept/index.vue',
|
||||
'../views/_core/dict/index.vue',
|
||||
'../views/_core/fallback/**/*.vue',
|
||||
'../views/_core/file-manager/index.vue',
|
||||
'../views/_core/file-preview/index.vue',
|
||||
'../views/_core/login-log/index.vue',
|
||||
'../views/_core/menu/index.vue',
|
||||
'../views/_core/message/index.vue',
|
||||
|
||||
@@ -63,6 +63,17 @@ const coreRoutes: RouteRecordRaw[] = [
|
||||
title: 'OAuth Callback',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'FilePreview',
|
||||
path: '/file-preview/:id',
|
||||
component: () => import('#/views/_core/file-preview/index.vue'),
|
||||
meta: {
|
||||
hideInBreadcrumb: true,
|
||||
hideInMenu: true,
|
||||
hideInTab: true,
|
||||
title: $t('file-manager.filePreview'),
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export { coreRoutes, fallbackNotFoundRoute };
|
||||
|
||||
Reference in New Issue
Block a user