mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-13 05:03:16 +08:00
add filelist
This commit is contained in:
31
frontend/vben/src/router/routes/modules/filelist.ts
Normal file
31
frontend/vben/src/router/routes/modules/filelist.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { AppRouteModule } from '/@/router/types'
|
||||
|
||||
import { LAYOUT } from '/@/router/constant'
|
||||
import { t } from '/@/hooks/web/useI18n'
|
||||
|
||||
const filelist: AppRouteModule = {
|
||||
path: '/filelist',
|
||||
name: 'FileList',
|
||||
component: LAYOUT,
|
||||
redirect: '/filelist/index',
|
||||
meta: {
|
||||
hideChildrenInMenu: true,
|
||||
icon: 'ion:file-tray-full-outline',
|
||||
title: t('routes.filelist.name'),
|
||||
orderNo: 20,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
name: 'FileListPage',
|
||||
component: () => import('/@/views/page/filelist/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.filelist.name'),
|
||||
icon: 'ion:file-tray-full-outline',
|
||||
hideMenu: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
export default filelist
|
||||
@@ -1,31 +0,0 @@
|
||||
import type { AppRouteModule } from '/@/router/types'
|
||||
|
||||
import { LAYOUT } from '/@/router/constant'
|
||||
import { t } from '/@/hooks/web/useI18n'
|
||||
|
||||
const setup: AppRouteModule = {
|
||||
path: '/setup',
|
||||
name: 'SetupDemo',
|
||||
component: LAYOUT,
|
||||
redirect: '/setup/index',
|
||||
meta: {
|
||||
orderNo: 90000,
|
||||
hideChildrenInMenu: true,
|
||||
icon: 'whh:paintroll',
|
||||
title: t('routes.demo.setup.page'),
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
name: 'SetupDemoPage',
|
||||
component: () => import('/@/views/setup/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.demo.setup.page'),
|
||||
icon: 'whh:paintroll',
|
||||
hideMenu: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
export default setup
|
||||
Reference in New Issue
Block a user