Vben
2021-03-31 8a14069e71d5393cfa5b758f46a1c5c001fa172b
src/router/menus/modules/dashboard.ts
@@ -1,21 +1,31 @@
import type { MenuModule } from '/@/router/types.d';
import type { MenuModule } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
const menu: MenuModule = {
  orderNo: 10,
  menu: {
    name: 'Dashboard',
    name: t('routes.dashboard.dashboard'),
    path: '/dashboard',
    tag: {
      dot: true,
      type: 'warn',
    },
    children: [
      {
        path: '/workbench',
        name: '工作台',
        path: 'analysis',
        name: t('routes.dashboard.analysis'),
        tag: {
          dot: true,
          type: 'warn',
        },
      },
      {
        path: '/analysis',
        name: '分析页',
      },
      {
        path: '/welcome',
        name: '首页',
        path: 'workbench',
        name: t('routes.dashboard.workbench'),
        tag: {
          dot: true,
          type: 'warn',
        },
      },
    ],
  },