system.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import type { RouteRecordRaw } from 'vue-router';
  2. import { $t } from '#/locales';
  3. const routes: RouteRecordRaw[] = [
  4. {
  5. meta: {
  6. icon: 'ion:settings-outline',
  7. order: 4,
  8. title: $t('page.system.title'),
  9. },
  10. name: 'System',
  11. path: '/system',
  12. redirect: '/system/parameter',
  13. children: [
  14. {
  15. name: 'UserManagement',
  16. path: 'user',
  17. component: () => import('#/views/system/user/index.vue'),
  18. meta: {
  19. icon: 'ion:people-outline',
  20. title: $t('page.system.user'),
  21. hideInMenu: true,
  22. },
  23. },
  24. {
  25. name: 'ParameterSettings',
  26. path: 'parameter',
  27. component: () => import('#/views/system/parameter/index.vue'),
  28. meta: {
  29. icon: 'ion:options-outline',
  30. title: $t('page.system.parameter'),
  31. },
  32. },
  33. {
  34. name: 'BackendControl',
  35. path: 'control',
  36. component: () => import('#/views/system/control/index.vue'),
  37. meta: {
  38. icon: 'ion:server-outline',
  39. title: $t('page.system.control'),
  40. },
  41. },
  42. ],
  43. },
  44. ];
  45. export default routes;