index.tsx 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. import React from "react";
  2. import { DageRouteItem } from "./types";
  3. export const DEFAULT_MENU: DageRouteItem[] = [];
  4. export const DEFAULT_ADMIN_MENU: DageRouteItem[] = [
  5. {
  6. path: "/banner",
  7. title: "海报管理",
  8. Component: React.lazy(() => import("../pages/Banner")),
  9. children: [
  10. {
  11. path: "/banner/create",
  12. title: "新增",
  13. hide: true,
  14. Component: React.lazy(() => import("../pages/Banner/create-or-edit")),
  15. },
  16. {
  17. path: "/banner/edit/:id",
  18. title: "编辑",
  19. hide: true,
  20. Component: React.lazy(() => import("../pages/Banner/create-or-edit")),
  21. },
  22. ],
  23. },
  24. {
  25. path: "/information",
  26. title: "资讯管理",
  27. Component: React.lazy(() => import("../pages/Information")),
  28. children: [
  29. {
  30. path: "/information/create",
  31. title: "新增",
  32. hide: true,
  33. Component: React.lazy(
  34. () => import("../pages/Information/create-or-edit")
  35. ),
  36. },
  37. {
  38. path: "/information/edit/:id",
  39. title: "编辑",
  40. hide: true,
  41. Component: React.lazy(
  42. () => import("../pages/Information/create-or-edit")
  43. ),
  44. },
  45. ],
  46. },
  47. {
  48. path: "/exhibition",
  49. title: "展厅管理",
  50. Component: React.lazy(() => import("../pages/Exhibition")),
  51. children: [
  52. {
  53. path: "/exhibition/create",
  54. title: "新增",
  55. hide: true,
  56. Component: React.lazy(
  57. () => import("../pages/Exhibition/create-or-edit")
  58. ),
  59. },
  60. {
  61. path: "/exhibition/edit/:id",
  62. title: "编辑",
  63. hide: true,
  64. Component: React.lazy(
  65. () => import("../pages/Exhibition/create-or-edit")
  66. ),
  67. },
  68. ],
  69. },
  70. {
  71. path: "/collection",
  72. title: "藏品管理",
  73. Component: React.lazy(() => import("../pages/Collection")),
  74. children: [
  75. {
  76. path: "/collection/create",
  77. title: "新增",
  78. hide: true,
  79. Component: React.lazy(
  80. () => import("../pages/Collection/create-or-edit")
  81. ),
  82. },
  83. {
  84. path: "/collection/edit/:id",
  85. title: "编辑",
  86. hide: true,
  87. Component: React.lazy(
  88. () => import("../pages/Collection/create-or-edit")
  89. ),
  90. },
  91. ],
  92. },
  93. {
  94. path: "/questionnaire",
  95. title: "问卷管理",
  96. Component: React.lazy(() => import("../pages/Questionnaire")),
  97. children: [
  98. {
  99. path: "/questionnaire/create",
  100. title: "新增",
  101. hide: true,
  102. Component: React.lazy(
  103. () => import("../pages/Questionnaire/create-or-edit")
  104. ),
  105. },
  106. ],
  107. },
  108. {
  109. path: "/message",
  110. title: "留言管理",
  111. Component: React.lazy(() => import("../pages/Message")),
  112. },
  113. {
  114. path: "/user",
  115. title: "用户管理",
  116. Component: React.lazy(() => import("../pages/User")),
  117. },
  118. {
  119. path: "/log",
  120. title: "操作日志",
  121. Component: React.lazy(() => import("../pages/Log")),
  122. },
  123. ];
  124. export * from "./types";