portal.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**
  2. * Copyright [2022] [https://www.xiaonuo.vip]
  3. * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
  4. * 1.请不要删除和修改根目录下的LICENSE文件。
  5. * 2.请不要删除和修改Snowy源码头部的版权声明。
  6. * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
  7. * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
  8. * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
  9. * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
  10. */
  11. const portal = [
  12. // {
  13. // name: 'portal',
  14. // path: '/portal',
  15. // components: () => import('@/portal/index.vue'),
  16. // children: [
  17. // {
  18. // name: 'resourceCenter',
  19. // path: '/portal/resourceCenter',
  20. // component: () => import('@/resourceCenter/index.vue')
  21. // },
  22. // {
  23. // name: 'resourceDetails',
  24. // path: '/portal/resourceDetails',
  25. // component: () => import('@/resourceDetails/index.vue')
  26. // }
  27. // ]
  28. // }
  29. {
  30. name: 'portal',
  31. path: '/portal',
  32. component: () => import('@/views/portal/index.vue'),
  33. children: [
  34. {
  35. name: 'portal.resourceCenter',
  36. path: '/portal/resourceCenter',
  37. hide: true,
  38. component: () => import('@/views/resourceCenter/index.vue')
  39. },
  40. {
  41. name: 'portal.resourceDetails',
  42. path: '/portal/resourceDetails',
  43. hide: true,
  44. component: () => import('@/views/resourceDetails/index.vue')
  45. },
  46. {
  47. name: 'portal.personalResources',
  48. path: '/portal/personalResources',
  49. component: () => import('@/views/myResources/personalResources/index.vue')
  50. },
  51. {
  52. name: 'portal.resourceManagement',
  53. path: '/portal/resourceManagement',
  54. component: () => import('@/views/myResources/resourceManagement/index.vue')
  55. },
  56. {
  57. name: 'portal.courseCenter',
  58. path: '/portal/courseCenter',
  59. component: () => import('@/views/courseCenter/index.vue')
  60. },
  61. {
  62. name: 'portal.courseDetails',
  63. path: '/portal/courseDetails',
  64. component: () => import('@/views/courseDetails/index.vue')
  65. },
  66. {
  67. name: 'portal.courseAdd',
  68. path: '/portal/courseAdd',
  69. component: () => import('@/views/courseAdd/index.vue')
  70. },
  71. {
  72. name: 'portal.courseManagement',
  73. path: '/portal/courseManagement',
  74. component: () => import('@/views/courseManagement/index.vue')
  75. }
  76. ]
  77. },
  78. {
  79. path: '/notLook',
  80. name: 'notLook',
  81. component: () => import('@/views/notLook/index.vue'),
  82. children: []
  83. }
  84. ]
  85. /**
  86. * 路由白名单(数组形式)
  87. *
  88. * 如果组件像登录一样,那就简单的写一个path,即可实现放开,
  89. * 如果组件不在这边的,需要手动添加组件,就像other一样,
  90. * 因为没登陆你没法拿到后端给你返回的那一坨,当然就找不到component
  91. *
  92. * @author yubaoshan
  93. */
  94. export default portal