index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * News 插件路由配置
  3. * 新闻资讯管理系统
  4. *
  5. * @author SixShop Team
  6. * @version 1.0.0
  7. */
  8. export default {
  9. // 路由配置 - 单个路由对象
  10. routes: {
  11. path: '/news',
  12. name: 'NewsModule',
  13. component: () => import('@/layout/index.vue'),
  14. redirect: '/news/index', // 添加默认重定向
  15. meta: {
  16. title: '新闻管理',
  17. icon: 'Document',
  18. permission: 'news',
  19. priority: 60, // 中等优先级
  20. version: '1.0.0',
  21. author: 'SixShop Team',
  22. description: '新闻资讯和内容管理系统'
  23. },
  24. children: [
  25. {
  26. path: 'index',
  27. name: 'NewsIndex',
  28. component: () => import('./views/index.vue'),
  29. meta: {
  30. title: '新闻管理',
  31. icon: 'Document',
  32. keepAlive: true // 启用页面缓存
  33. }
  34. }
  35. ]
  36. },
  37. // 菜单配置 - 与路由对应
  38. menus: [
  39. {
  40. path: '/news',
  41. title: '新闻管理',
  42. icon: 'Document',
  43. permission: 'news',
  44. children: [
  45. {
  46. path: '/news/index',
  47. title: '新闻管理',
  48. icon: 'Document'
  49. }
  50. ]
  51. }
  52. ]
  53. }