33 lines
730 B
TypeScript
33 lines
730 B
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
import { BasicLayout } from '#/layouts';
|
|
import { $t } from '#/locales';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
component: BasicLayout,
|
|
meta: {
|
|
icon: 'ant-design:folder-open-outlined',
|
|
order: 3,
|
|
title: $t('abp.menu.file'),
|
|
authority: ['FileManagement'],
|
|
},
|
|
name: 'file',
|
|
path: '/file',
|
|
children: [
|
|
{
|
|
name: 'abpFile',
|
|
path: 'page',
|
|
component: () => import('#/views/system/abpfiles/index.vue'),
|
|
meta: {
|
|
icon: 'ant-design:file-text-twotone',
|
|
title: $t('abp.menu.file'),
|
|
authority: ['FileManagement.File'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|