index.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. import { createRouter, createWebHashHistory } from "vue-router";
  2. import countryRouter from "./country";
  3. const routes = [
  4. {
  5. path: "/",
  6. name: "Program",
  7. component: () =>
  8. import(/* webpackChunkName: "program" */ "../views/Program.vue"),
  9. },
  10. {
  11. path: "/Channel",
  12. name: "Channel",
  13. component: () =>
  14. import(/* webpackChunkName: "channel" */ "../views/Channel.vue"),
  15. },
  16. {
  17. path: "/heightlight",
  18. name: "Heightlight",
  19. component: () =>
  20. import(/* webpackChunkName: "heightlight" */ "../views/Heightlight.vue"),
  21. },
  22. {
  23. path: "/realData",
  24. name: "RealData",
  25. component: () =>
  26. import(/* webpackChunkName: "realData" */ "../views/RealData.vue"),
  27. },
  28. {
  29. path: "/liveChannel",
  30. name: "LiveChannel",
  31. component: () =>
  32. import(/* webpackChunkName: "liveChannel" */ "../views/LiveChannel.vue"),
  33. },
  34. {
  35. path: "/boutiqueColumn",
  36. name: "boutiqueColumn",
  37. component: () =>
  38. import(
  39. /* webpackChunkName: "boutiqueColumn" */ "../views/BoutiqueColumn/BoutiqueColumn.vue"
  40. ),
  41. },
  42. {
  43. path: "/activity",
  44. name: "Activity",
  45. component: () =>
  46. import(
  47. /* webpackChunkName: "activity" */ "../views/Activity/Activity.vue"
  48. ),
  49. },
  50. {
  51. path: "/jugou",
  52. name: "Jugou",
  53. component: () =>
  54. import(/* webpackChunkName: "jugou" */ "../views/Jugou/Jugou.vue"),
  55. },
  56. {
  57. path: "/radio",
  58. name: "Radio",
  59. component: () =>
  60. import(/* webpackChunkName: "radio" */ "../views/Radio/Radio.vue"),
  61. },
  62. {
  63. path: "/hardAdvertisement",
  64. name: "HardAdvertisement",
  65. component: () =>
  66. import(
  67. /* webpackChunkName: "hardAdvertisement" */ "../views/HardAdvertisement/HardAdvertisement.vue"
  68. ),
  69. },
  70. {
  71. path: "/advertisingEye",
  72. name: "AdvertisingEye",
  73. component: () =>
  74. import(
  75. /* webpackChunkName: "advertisingEye" */ "../views/AdvertisingEye/AdvertisingEye.vue"
  76. ),
  77. },
  78. {
  79. path: "/channelRanking",
  80. name: "ChannelRanking",
  81. component: () =>
  82. import(
  83. /* webpackChunkName: "channelRanking" */ "../views/ChannelRanking/ChannelRanking.vue"
  84. ),
  85. },
  86. {
  87. path: "/reportForm",
  88. name: "ReportForm",
  89. component: () =>
  90. import(
  91. /* webpackChunkName: "reportForm" */ "../views/ReportForm/ReportForm.vue"
  92. ),
  93. },
  94. {
  95. path: "/radioBroadcast",
  96. name: "RadioBroadcast",
  97. component: () =>
  98. import(
  99. /* webpackChunkName: "radioBroadcast" */ "../views/RadioBroadcast.vue"
  100. ),
  101. },
  102. {
  103. path: "/realOnline",
  104. name: "RealOnline",
  105. component: () =>
  106. import(
  107. /* webpackChunkName: "realOnline" */ "../views/RealOnline/index.vue"
  108. ),
  109. },
  110. {
  111. path: "/history",
  112. name: "History",
  113. component: () =>
  114. import(/* webpackChunkName: "history" */ "../views/History/index.vue"),
  115. },
  116. {
  117. path: "/region",
  118. name: "Region",
  119. component: () =>
  120. import(/* webpackChunkName: "region" */ "../views/Region/index.vue"),
  121. },
  122. // 内容
  123. {
  124. path: "/content",
  125. name: "Content",
  126. component: () =>
  127. import(/* webpackChunkName: "content" */ "../views/Content/index.vue"),
  128. },
  129. // 新用户留存
  130. {
  131. path: "/keep",
  132. name: "Keep",
  133. component: () =>
  134. import(/* webpackChunkName: "Keep" */ "../views/Keep/index.vue"),
  135. },
  136. // 搜索分析
  137. {
  138. path: "/search",
  139. name: "Search",
  140. component: () =>
  141. import(/* webpackChunkName: "Search" */ "../views/Search/index.vue"),
  142. },
  143. // 版本分析
  144. {
  145. path: "/version",
  146. name: "Version",
  147. component: () =>
  148. import(/* webpackChunkName: "Version" */ "../views/Version/index.vue"),
  149. },
  150. countryRouter, // 全国数据
  151. ];
  152. // 实时/单期 节目流入流出 共计2个 可以使用同一模块
  153. // 具体/抽象 节目剧目 查询/排行 共计4个,可以使用一个模块
  154. const router = createRouter({
  155. history: createWebHashHistory(process.env.BASE_URL),
  156. routes,
  157. });
  158. export default router;