Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
import { BasicLayout } from '#/layouts';
|
|
import { $t } from '#/locales';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
component: BasicLayout,
|
|
meta: {
|
|
icon: 'lucide:file-clock',
|
|
order: 1001,
|
|
title: $t('page.operation.title'),
|
|
authority: ['super', 'admin'],
|
|
},
|
|
name: 'Operation',
|
|
path: '/operation',
|
|
children: [
|
|
{
|
|
name: 'Level',
|
|
path: '/level',
|
|
component: () => import('#/views/operation/level/index.vue'),
|
|
meta: {
|
|
affixTab: true,
|
|
icon: 'lucide:chart-no-axes-column-increasing',
|
|
title: $t('page.operation.level'),
|
|
authority: ['super', 'admin'],
|
|
},
|
|
},
|
|
{
|
|
name: 'Mail',
|
|
path: '/mail',
|
|
component: () => import('#/views/operation/mail/index.vue'),
|
|
meta: {
|
|
affixTab: true,
|
|
icon: 'lucide:mail',
|
|
title: $t('page.operation.mail'),
|
|
},
|
|
},
|
|
{
|
|
name: 'Order',
|
|
path: '/order',
|
|
component: () => import('#/views/operation/order/index.vue'),
|
|
meta: {
|
|
affixTab: true,
|
|
icon: 'lets-icons:order',
|
|
title: $t('page.operation.order'),
|
|
},
|
|
}
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|