settings.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Layout */
  2. import Layout from '@/layout'
  3. const settingRoutes = [
  4. {
  5. path: '/normal/settings',
  6. component: Layout,
  7. redirect: '/normal/settings/auth-card',
  8. name: 'NormalSettings',
  9. meta: { title: '系统设置', icon: 'el-icon-s-tools', noCache: true },
  10. children: [
  11. {
  12. path: 'roles',
  13. name: 'NormalSettingsRoles',
  14. meta: { title: '角色管理', noCache: true },
  15. component: () => import('@/views/normal/settings/roles')
  16. },
  17. {
  18. path: 'roles/add',
  19. name: 'NormalSettingsRolesAdd',
  20. hidden: true,
  21. meta: { title: '添加角色', noCache: true },
  22. component: () => import('@/views/normal/settings/roles/edit')
  23. },
  24. {
  25. path: 'roles/edit',
  26. name: 'NormalSettingsRolesEdit',
  27. hidden: true,
  28. meta: { title: '修改角色', noCache: true },
  29. component: () => import('@/views/normal/settings/roles/edit')
  30. },
  31. {
  32. path: 'accounts',
  33. name: 'NormalSettingsAccounts',
  34. meta: { title: '用户管理', noCache: true },
  35. component: () => import('@/views/normal/settings/accounts')
  36. },
  37. {
  38. path: 'accounts/add',
  39. name: 'NormalSettingsAccountsAdd',
  40. hidden: true,
  41. meta: { title: '添加用户', noCache: true },
  42. component: () => import('@/views/normal/settings/accounts/edit')
  43. },
  44. {
  45. path: 'accounts/edit',
  46. name: 'NormalSettingsAccountsEdit',
  47. hidden: true,
  48. meta: { title: '修改用户', noCache: true },
  49. component: () => import('@/views/normal/settings/accounts/edit')
  50. },
  51. {
  52. path: 'auth-card',
  53. name: 'NormalSettingsAuthCard',
  54. hidden: true,
  55. meta: { title: '授权牌模板', noCache: true },
  56. component: () => import('@/views/normal/settings/auth-card')
  57. }
  58. ]
  59. }
  60. ]
  61. export default settingRoutes