cms.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 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 '@/layouts/basic-layout';
  11. import Setting from "@/setting";
  12. const pre = 'cms_';
  13. export default {
  14. path: `${Setting.roterPre}/cms`,
  15. name: 'cms',
  16. header: 'cms',
  17. // redirect: {
  18. // name: `${pre}article`
  19. // },
  20. component: BasicLayout,
  21. children: [
  22. {
  23. path: 'article/index/:id?',
  24. name: `${pre}article`,
  25. meta: {
  26. auth: ['cms-article-index'],
  27. title: '文章管理'
  28. },
  29. component: () => import('@/pages/cms/article/index')
  30. },
  31. {
  32. path: 'article_category/index',
  33. name: `${pre}articleCategory`,
  34. meta: {
  35. auth: ['cms-article-category'],
  36. title: '文章分类'
  37. },
  38. component: () => import('@/pages/cms/articleCategory/index')
  39. },
  40. {
  41. path: 'article/add_article/:id?',
  42. name: `${pre}addArticle`,
  43. meta: {
  44. auth: ['cms-article-creat'],
  45. title: '文章添加'
  46. },
  47. component: () => import('@/pages/cms/addArticle/index')
  48. }
  49. ]
  50. };