1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- import { RouterConfig } from '@nuxt/schema'
- export default <RouterConfig>{
- routes: (_routes) => {
- return [
- {
- name: 'reports',
- path: '/:lang?/report-industries/:category?/:keyword?', // 自定义路由地址
- component: () => import('~/pages/report-industries/index.vue'), // 指向你的首页组件
- meta: { title: '研究报告', titleEn: 'Research Report', activeIndex: 1 }
- },
- {
- name: 'reportDetail',
- path: '/:lang?/reports/:webTitle?',
- component: () => import('~/pages/report-industries/detail.vue'),
- meta: { title: '研究报告详情', titleEn: 'Research Report Detail', activeIndex: 1 }
- },
- {
- name: 'bulletinThinkTank',
- path: '/bulletin/bulletin-think-tank/:marketType?/:keyword?',
- component: () => import('~/pages/bulletin/index.vue'),
- meta: { title: '行研简报', activeIndex: 3 }
- },
- {
- name: 'bulletinDetail',
- path: '/bulletin/bulletin-detail/:webTitle?',
- component: () => import('~/pages/bulletin/detail.vue'),
- meta: { title: '行研简报详情', activeIndex: 3 }
- },
- {
- name: 'newsCategories',
- path: '/:lang?/news-categories/:marketType?/:marketCategory?/:keyword?',
- component: () => import('~/pages/news-categories/index.vue'),
- meta: { title: '行业资讯', titleEn: 'Industry News', activeIndex: 4 }
- },
- {
- name: 'newsDetail',
- path: '/:lang?/news/:webTitle?',
- component: () => import('~/pages/news-categories/detail.vue'),
- meta: { title: '行业资讯详情', titleEn: 'Industry News Detail', activeIndex: 4 }
- },
- {
- name: 'about',
- path: '/:lang?/about',
- component: () => import('~/pages/about/index.vue'),
- meta: { title: '公司简介', titleEn: 'Company Profile', activeIndex: 5 }
- },
- {
- name: 'link',
- path: '/:lang?/link',
- component: () => import('~/pages/about/link.vue'),
- meta: { title: '研究方法', titleEn: 'Research Method', activeIndex: 5 }
- },
- {
- name: 'order',
- path: '/:lang?/order',
- component: () => import('~/pages/about/order.vue'),
- meta: { title: '关于订购', titleEn: 'Order Process', activeIndex: 5 }
- },
- {
- name: 'term',
- path: '/:lang?/term',
- component: () => import('~/pages/about/term.vue'),
- meta: { title: '相关条款', titleEn: 'Terms and Conditions', activeIndex: 5 }
- },
- {
- name: 'qualify',
- path: '/:lang?/qualify',
- component: () => import('~/pages/about/qualify.vue'),
- meta: { title: '企业资质', titleEn: 'Enterprise Qualifications', activeIndex: 5 }
- },
- {
- name: 'contactUsIndex',
- path: '/:lang?/contactUs',
- component: () => import('~/pages/contact/index.vue'),
- meta: { title: '企业资质', titleEn: 'Enterprise Qualifications', activeIndex: 5 }
- },
- {
- name: 'mine',
- path: '/:lang?/mine/mineCenter',
- component: () => import('~/pages/mine/index.vue'),
- meta: { title: '个人中心' }
- },
- ..._routes, // 保留默认的路由配置
- ]
- }
- }
|