system.ts 748 Bytes
import type { MenuModule } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';

const menu: MenuModule = {
  orderNo: 2000,
  menu: {
    name: t('routes.demo.system.moduleName'),
    path: '/system',
    tag: {
      dot: true,
    },
    children: [
      {
        path: 'account',
        name: t('routes.demo.system.account'),
        tag: {
          dot: true,
          type: 'warn',
        },
      },

      {
        path: 'dept',
        name: t('routes.demo.system.dept'),
        tag: {
          content: 'new',
        },
      },

      {
        path: 'changePassword',
        name: t('routes.demo.system.password'),
        tag: {
          content: 'new',
        },
      },
    ],
  },
};
export default menu;