router.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * News 插件路由配置
  3. * 新闻管理系统
  4. *
  5. * @author SixShop Team
  6. * @version 1.0.0
  7. */
  8. export default {
  9. path: '/news',
  10. name: 'News',
  11. component: () => import('@/layout/index.vue'),
  12. meta: {
  13. title: '新闻管理',
  14. icon: 'Document',
  15. plugin: 'news',
  16. priority: 30,
  17. version: '1.0.0',
  18. author: 'SixShop Team',
  19. description: '新闻资讯管理系统'
  20. },
  21. children: [
  22. {
  23. path: '',
  24. name: 'NewsIndex',
  25. component: () => import('./index.vue'),
  26. meta: {
  27. title: '新闻管理',
  28. icon: 'Document'
  29. }
  30. },
  31. {
  32. path: 'article/create',
  33. name: 'NewsArticleCreate',
  34. component: () => import('./components/article/ArticleEdit.vue'),
  35. meta: {
  36. title: '新增文章',
  37. hidden: true
  38. }
  39. },
  40. {
  41. path: 'article/edit/:id',
  42. name: 'NewsArticleEdit',
  43. component: () => import('./components/article/ArticleEdit.vue'),
  44. meta: {
  45. title: '编辑文章',
  46. hidden: true
  47. }
  48. }
  49. ]
  50. }