import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

const USER_DASHBOARD: AppRouteRecordRaw = {
  path: '/userDashboard',
  name: 'userDashboard',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '仪表盘',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
    showInMenu: true
  },
  children: [
    {
      path: 'sysUserWorkplace',
      name: 'sysUserWorkplace',
      component: () => import('@/views/user-center/workplace/index.vue'),
      meta: {
        locale: '工作台',
        requiresAuth: true,
        roles: ['*']
      }
    }
  ]
};

export default USER_DASHBOARD;
