router.options.ts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. // app/router.options.ts
  2. import type { RouterConfig } from "@nuxt/schema"
  3. export default <RouterConfig> {
  4. routes: async (routes) => {
  5. // 静态别名
  6. const staticAliases = [
  7. {
  8. path: '/tieshenbaobei138/',
  9. component: () => import('~/pages/primaryNavigation/[id].vue'),
  10. meta: {
  11. isAlias: true,
  12. routeId: 138,
  13. routeName: '贴身宝贝'
  14. }
  15. },
  16. {
  17. path: '/xinnongcun11/',
  18. component: () => import('~/pages/primaryNavigation/[id].vue'),
  19. meta: {
  20. isAlias: true,
  21. routeId: 11,
  22. routeName: '新农村'
  23. }
  24. },
  25. {
  26. path: '/nongmingong317/',
  27. component: () => import('~/pages/primaryNavigation/[id].vue'),
  28. meta: {
  29. isAlias: true,
  30. routeId: 317,
  31. routeName: '农民工'
  32. }
  33. },
  34. {
  35. path: '/zhengcefagui1/',
  36. component: () => import('~/pages/primaryNavigation/[id].vue'),
  37. meta: {
  38. isAlias: true,
  39. routeId: 1,
  40. routeName: '政策法规'
  41. }
  42. },
  43. {
  44. path: '/sannongzhichuang2/',
  45. component: () => import('~/pages/primaryNavigation/[id].vue'),
  46. meta: {
  47. isAlias: true,
  48. routeId: 2,
  49. routeName: '三农之窗'
  50. }
  51. },
  52. {
  53. path: '/quyujingji5/',
  54. component: () => import('~/pages/primaryNavigation/[id].vue'),
  55. meta: {
  56. isAlias: true,
  57. routeId: 5,
  58. routeName: '区域经济'
  59. }
  60. },
  61. {
  62. path: '/sannongtouzi12/',
  63. component: () => import('~/pages/primaryNavigation/[id].vue'),
  64. meta: {
  65. isAlias: true,
  66. routeId: 12,
  67. routeName: '三农投资'
  68. }
  69. },
  70. {
  71. path: '/nongmaozixun13/',
  72. component: () => import('~/pages/primaryNavigation/[id].vue'),
  73. meta: {
  74. isAlias: true,
  75. routeId: 13,
  76. routeName: '农贸资讯'
  77. }
  78. },
  79. {
  80. path: '/sannongkejiao14/',
  81. component: () => import('~/pages/primaryNavigation/[id].vue'),
  82. meta: {
  83. isAlias: true,
  84. routeId: 14,
  85. routeName: '三农科教'
  86. }
  87. },
  88. {
  89. path: '/wenhuashenghuo15/',
  90. component: () => import('~/pages/primaryNavigation/[id].vue'),
  91. meta: {
  92. isAlias: true,
  93. routeId: 15,
  94. routeName: '文化生活'
  95. }
  96. },
  97. {
  98. path: '/sannongtansuo16/',
  99. component: () => import('~/pages/primaryNavigation/[id].vue'),
  100. meta: {
  101. isAlias: true,
  102. routeId: 16,
  103. routeName: '三农探索'
  104. }
  105. },
  106. {
  107. path: '/sannongrenwu18/',
  108. component: () => import('~/pages/primaryNavigation/[id].vue'),
  109. meta: {
  110. isAlias: true,
  111. routeId: 18,
  112. routeName: '三农人物'
  113. }
  114. },
  115. {
  116. path: '/xiezuodaquan150/',
  117. component: () => import('~/pages/primaryNavigation/[id].vue'),
  118. meta: {
  119. isAlias: true,
  120. routeId: 150,
  121. routeName: '写作大全'
  122. }
  123. },
  124. {
  125. path: '/zhaogongzhaopin20/',
  126. component: () => import('~/pages/primaryNavigation/[id].vue'),
  127. meta: {
  128. isAlias: true,
  129. routeId: 20,
  130. routeName: '招工招聘'
  131. }
  132. },
  133. {
  134. path: '/nongzigouxiao21/',
  135. component: () => import('~/pages/primaryNavigation/[id].vue'),
  136. meta: {
  137. isAlias: true,
  138. routeId: 21,
  139. routeName: '农资购销'
  140. }
  141. },
  142. {
  143. path: '/nongchangouxiao153/',
  144. component: () => import('~/pages/primaryNavigation/[id].vue'),
  145. meta: {
  146. isAlias: true,
  147. routeId: 153,
  148. routeName: '农产购销'
  149. }
  150. },
  151. {
  152. path: '/zhifuxinxi23/',
  153. component: () => import('~/pages/primaryNavigation/[id].vue'),
  154. meta: {
  155. isAlias: true,
  156. routeId: 23,
  157. routeName: '致富信息'
  158. }
  159. },
  160. {
  161. path: '/shukanxinxi24/',
  162. component: () => import('~/pages/primaryNavigation/[id].vue'),
  163. meta: {
  164. isAlias: true,
  165. routeId: 24,
  166. routeName: '书刊信息'
  167. }
  168. },
  169. {
  170. path: '/nongwangdaohang25/',
  171. component: () => import('~/pages/primaryNavigation/[id].vue'),
  172. meta: {
  173. isAlias: true,
  174. routeId: 25,
  175. routeName: '农网导航'
  176. }
  177. },
  178. {
  179. path: '/dajiaweiquan26/',
  180. component: () => import('~/pages/primaryNavigation/[id].vue'),
  181. meta: {
  182. isAlias: true,
  183. routeId: 26,
  184. routeName: '打假维权'
  185. }
  186. },
  187. {
  188. path: '/sannongfuwu27/',
  189. component: () => import('~/pages/primaryNavigation/[id].vue'),
  190. meta: {
  191. isAlias: true,
  192. routeId: 27,
  193. routeName: '三农服务'
  194. }
  195. },
  196. {
  197. path: '/sannongdiaocha28/',
  198. component: () => import('~/pages/primaryNavigation/[id].vue'),
  199. meta: {
  200. isAlias: true,
  201. routeId: 28,
  202. routeName: '三农调查'
  203. }
  204. },
  205. {
  206. path: '/sannongluntan29/',
  207. component: () => import('~/pages/primaryNavigation/[id].vue'),
  208. meta: {
  209. isAlias: true,
  210. routeId: 29,
  211. routeName: '三农论坛'
  212. }
  213. },
  214. {
  215. path: '/sannongneican30/',
  216. component: () => import('~/pages/primaryNavigation/[id].vue'),
  217. meta: {
  218. isAlias: true,
  219. routeId: 30,
  220. routeName: '三农内参'
  221. }
  222. },
  223. {
  224. path: '/nongyekepu300/',
  225. component: () => import('~/pages/primaryNavigation/[id].vue'),
  226. meta: {
  227. isAlias: true,
  228. routeId: 300,
  229. routeName: '农业科普'
  230. }
  231. }
  232. ]
  233. return [
  234. ...routes,
  235. ...staticAliases,
  236. ]
  237. }
  238. }