router.options.ts 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import { RouterConfig } from '@nuxt/schema'
  2. export default <RouterConfig>{
  3. routes: (_routes) => {
  4. return [
  5. {
  6. name: 'reports',
  7. path: '/:lang?/report-industries/:category?/:keyword?', // 自定义路由地址
  8. component: () => import('~/pages/report-industries/index.vue'), // 指向你的首页组件
  9. meta: { title: '研究报告', titleEn: 'Research Report', activeIndex: 1 }
  10. },
  11. {
  12. name: 'reportDetail',
  13. path: '/:lang?/reports/:webTitle?',
  14. component: () => import('~/pages/report-industries/detail.vue'),
  15. meta: { title: '研究报告详情', titleEn: 'Research Report Detail', activeIndex: 1 }
  16. },
  17. {
  18. name: 'bulletinThinkTank',
  19. path: '/bulletin/bulletin-think-tank/:marketType?/:keyword?',
  20. component: () => import('~/pages/bulletin/index.vue'),
  21. meta: { title: '行研简报', activeIndex: 3 }
  22. },
  23. {
  24. name: 'bulletinDetail',
  25. path: '/bulletin/bulletin-detail/:webTitle?',
  26. component: () => import('~/pages/bulletin/detail.vue'),
  27. meta: { title: '行研简报详情', activeIndex: 3 }
  28. },
  29. {
  30. name: 'newsCategories',
  31. path: '/:lang?/news-categories/:marketType?/:keyword?',
  32. component: () => import('~/pages/news-categories/index.vue'),
  33. meta: { title: '行业资讯', titleEn: 'Industry News', activeIndex: 4 }
  34. },
  35. {
  36. name: 'newsDetail',
  37. path: '/:lang?/news/:webTitle?',
  38. component: () => import('~/pages/news-categories/detail.vue'),
  39. meta: { title: '行业资讯详情', titleEn: 'Industry News Detail', activeIndex: 4 }
  40. },
  41. {
  42. name: 'about',
  43. path: '/:lang?/about',
  44. component: () => import('~/pages/about/index.vue'),
  45. meta: { title: '公司简介', titleEn: 'Company Profile', activeIndex: 5 }
  46. },
  47. {
  48. name: 'link',
  49. path: '/:lang?/link',
  50. component: () => import('~/pages/about/link.vue'),
  51. meta: { title: '研究方法', titleEn: 'Research Method', activeIndex: 5 }
  52. },
  53. {
  54. name: 'order',
  55. path: '/:lang?/order',
  56. component: () => import('~/pages/about/order.vue'),
  57. meta: { title: '关于订购', titleEn: 'Order Process', activeIndex: 5 }
  58. },
  59. {
  60. name: 'term',
  61. path: '/:lang?/term',
  62. component: () => import('~/pages/about/term.vue'),
  63. meta: { title: '相关条款', titleEn: 'Terms and Conditions', activeIndex: 5 }
  64. },
  65. {
  66. name: 'qualify',
  67. path: '/:lang?/qualify',
  68. component: () => import('~/pages/about/qualify.vue'),
  69. meta: { title: '企业资质', titleEn: 'Enterprise Qualifications', activeIndex: 5 }
  70. },
  71. {
  72. name: 'contactUsIndex',
  73. path: '/:lang?/contactUs',
  74. component: () => import('~/pages/contact/index.vue'),
  75. meta: { title: '企业资质', titleEn: 'Enterprise Qualifications', activeIndex: 5 }
  76. },
  77. {
  78. name: 'mine',
  79. path: '/:lang?/mine/mineCenter',
  80. component: () => import('~/pages/mine/index.vue'),
  81. meta: { title: '个人中心' }
  82. },
  83. ..._routes, // 保留默认的路由配置
  84. ]
  85. }
  86. }