41 lines
865 B
TypeScript
41 lines
865 B
TypeScript
import { DEFAULT_LAYOUT } from '../base';
|
|
import { AppRouteRecordRaw } from '../types';
|
|
|
|
const FINANCE: AppRouteRecordRaw = {
|
|
path: '/finance',
|
|
name: 'finance',
|
|
component: DEFAULT_LAYOUT,
|
|
redirect: '/finance/bill',
|
|
meta: {
|
|
locale: 'menu.finance',
|
|
icon: 'icon-settings',
|
|
requiresAuth: true,
|
|
order: 3,
|
|
isFirst:true,
|
|
},
|
|
children: [
|
|
{
|
|
path: 'bill',
|
|
name: 'bill',
|
|
component: () => import('@/views/finance/bill/index.vue'),
|
|
meta: {
|
|
locale: 'menu.finance.bill',
|
|
requiresAuth: true,
|
|
roles: ['admin'],
|
|
},
|
|
},
|
|
{
|
|
path: 'money',
|
|
name: 'money',
|
|
component: () => import('@/views/finance/money/index.vue'),
|
|
meta: {
|
|
locale: 'menu.finance.money',
|
|
requiresAuth: true,
|
|
roles: ['admin'],
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default FINANCE;
|