system.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import LayoutMain from '@/framework/layout/Main'
  2. //首页登录页面
  3. import login from '@/framework/layout'
  4. // 品牌管理
  5. import brand from '@/views/brand'
  6. import brandDetail from "@/views/brand/detail"
  7. //产品管理
  8. import product from "@/views/product/index"
  9. import productDetail from "@/views/product/detail"
  10. //从已有数据填充产品
  11. import supplement from "@/views/supplement"
  12. //测试页面
  13. import test from '@/components/test'
  14. /**模型管理 */
  15. import modelFile from '@/views/model/file'
  16. export default [
  17. // 首页
  18. {
  19. path: '/',
  20. name: 'LayoutMain',
  21. component: LayoutMain,
  22. children: [{
  23. path: '',
  24. name: 'login',
  25. component: login
  26. }]
  27. },
  28. //登录页
  29. {
  30. path: '/login',
  31. name: 'login',
  32. component: login,
  33. },
  34. //产品管理
  35. {
  36. path: '/product',
  37. name: 'LayoutMain',
  38. component: LayoutMain,
  39. children: [{
  40. path: '',
  41. name: 'product',
  42. component: product,
  43. },
  44. {
  45. path: '/product/productDetail',
  46. name: 'productDetail',
  47. component: productDetail,
  48. }
  49. ]
  50. },
  51. // 品牌管理
  52. {
  53. path: '/brand',
  54. name: 'LayoutMain',
  55. component: LayoutMain,
  56. children: [{
  57. path: '',
  58. name: 'brand',
  59. component: brand
  60. },
  61. {
  62. path:'/brand/brandDetail',
  63. name:'brand',
  64. component: brandDetail
  65. }
  66. ]
  67. },
  68. // 从已有数据填充产品
  69. {
  70. path: '/supplement',
  71. name: 'LayoutMain',
  72. component: LayoutMain,
  73. children: [{
  74. path: '',
  75. name: 'supplement',
  76. component: supplement
  77. },
  78. ]
  79. },
  80. {
  81. path: '/test',
  82. name: 'test',
  83. component: test,
  84. },
  85. //模型管理
  86. {
  87. path: '/model',
  88. name: 'LayoutMain',
  89. component: LayoutMain,
  90. children: [{
  91. path: '',
  92. name: 'modelFile',
  93. component: modelFile
  94. },
  95. {
  96. path: 'file',
  97. name: 'modelFile',
  98. component: modelFile,
  99. meta: {
  100. path: 'file',
  101. name: 'modelFile',
  102. component: modelFile,
  103. meta: { keepAlive: false, breadcrumbs: [{ label: '模型管理', path: '/model/file' }, { label: '模型文件管理' }]}
  104. },
  105. },
  106. ]
  107. },
  108. ]