Files
Code-Create/src/routes.ts

39 lines
783 B
TypeScript
Raw Normal View History

2026-05-14 09:53:22 +08:00
import type { RouteRecordRaw } from 'vue-router'
2026-05-14 15:31:34 +08:00
import AboutView from './pages/about-us/index.vue'
2026-05-14 09:53:22 +08:00
import ContactView from './pages/ContactView.vue'
2026-05-14 17:15:49 +08:00
import HomeView from './pages/home/index.vue'
2026-05-14 09:53:22 +08:00
import ProductsView from './pages/ProductsView.vue'
2026-05-18 10:39:52 +08:00
import { LANGS } from './lang'
2026-05-14 09:53:22 +08:00
export const routes: RouteRecordRaw[] = [
2026-05-14 13:08:29 +08:00
{
2026-05-18 10:39:52 +08:00
path: `/:lang(${LANGS.join('|')})?`,
2026-05-14 13:08:29 +08:00
children: [
{
path: '',
component: HomeView,
},
{
2026-05-18 10:41:59 +08:00
path: 'about-us',
2026-05-18 10:41:18 +08:00
name: 'about-us',
2026-05-15 10:29:21 +08:00
component: AboutView
2026-05-14 13:08:29 +08:00
},
{
path: 'products',
name: 'products',
2026-05-15 10:29:21 +08:00
component: ProductsView
2026-05-14 13:08:29 +08:00
},
{
2026-05-18 10:41:59 +08:00
path: 'contact-us',
2026-05-14 13:08:29 +08:00
name: 'contact',
2026-05-15 10:29:21 +08:00
component: ContactView
2026-05-14 13:08:29 +08:00
},
2026-05-15 10:29:21 +08:00
{
path: 'aida',
name: 'Aida',
component: () => import('./pages/aida/index.vue')
}
]
}
2026-05-14 09:53:22 +08:00
]
2026-05-15 17:31:43 +08:00