You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.2 KiB
58 lines
1.2 KiB
import { DEFAULT_LAYOUT } from '../base';
|
|
import { AppRouteRecordRaw } from '../types';
|
|
|
|
const DASHBOARD: AppRouteRecordRaw = {
|
|
path: '/dashboard',
|
|
name: 'dashboard',
|
|
component: DEFAULT_LAYOUT,
|
|
meta: {
|
|
locale: 'menu.dashboard',
|
|
requiresAuth: true,
|
|
icon: 'icon-dashboard',
|
|
order: 0,
|
|
},
|
|
children: [
|
|
{
|
|
path: 'workplace',
|
|
name: 'Workplace',
|
|
component: () => import('@/views/dashboard/workplace/index.vue'),
|
|
meta: {
|
|
locale: 'menu.dashboard.workplace',
|
|
requiresAuth: true,
|
|
roles: ['*'],
|
|
},
|
|
},
|
|
|
|
{
|
|
path: 'monitor',
|
|
name: 'Monitor',
|
|
component: () => import('@/views/dashboard/monitor/index.vue'),
|
|
meta: {
|
|
locale: 'menu.dashboard.monitor',
|
|
requiresAuth: true,
|
|
roles: ['*'],
|
|
},
|
|
},
|
|
{
|
|
path: 'main',
|
|
name: 'Main',
|
|
component: () => import('@/views/api2gpt/main/index.vue'),
|
|
meta: {
|
|
locale: 'menu.dashboard.workplace',
|
|
requiresAuth: true,
|
|
}
|
|
},
|
|
{
|
|
path: 'pay',
|
|
name: 'Pay',
|
|
component: () => import('@/views/api2gpt/pay/index.vue'),
|
|
meta: {
|
|
locale: 'menu.pay',
|
|
requiresAuth: true,
|
|
},
|
|
}
|
|
],
|
|
};
|
|
|
|
export default DASHBOARD;
|