index.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // +---------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +---------------------------------------------------------------------
  4. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  5. // +---------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +---------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +---------------------------------------------------------------------
  10. import BasicLayout from '@/components/main';
  11. import setting from '@/setting'
  12. let roterPre = setting.roterPre;
  13. // export default {
  14. // path: '/',
  15. // name: 'home',
  16. // redirect: '/admin/home',
  17. // component: BasicLayout,
  18. // meta: {
  19. // hideInMenu: true,
  20. // notCache: true,
  21. // auth: true
  22. // },
  23. // children: [
  24. // {
  25. // path: 'admin/home',
  26. // name: 'home',
  27. // meta: {
  28. // title: '首页',
  29. // auth: ['admin-index-index']
  30. // },
  31. // component: () => import('@/pages/index/index')
  32. // }
  33. // ]
  34. // }
  35. const meta = {
  36. auth: true,
  37. };
  38. const pre = 'home_';
  39. export default {
  40. path: roterPre + '/',
  41. name: 'home',
  42. header: 'home',
  43. redirect: {
  44. name: `${pre}index`,
  45. },
  46. meta,
  47. component: BasicLayout,
  48. children: [
  49. {
  50. path: roterPre+'/home/',
  51. name: `${pre}index`,
  52. header: 'home',
  53. meta: {
  54. auth: ['admin-index-index'],
  55. title: '主页',
  56. affix: true,
  57. },
  58. component: () => import('@/pages/index/index'),
  59. },
  60. ],
  61. };