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 15:31:34 +08:00
|
|
|
import HomeView from './pages/HomeView.vue'
|
2026-05-14 09:53:22 +08:00
|
|
|
import ProductsView from './pages/ProductsView.vue'
|
|
|
|
|
|
|
|
|
|
export const routes: RouteRecordRaw[] = [
|
2026-05-14 13:08:29 +08:00
|
|
|
{
|
|
|
|
|
path: '/:lang?',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
component: HomeView,
|
|
|
|
|
alias: ['/:lang?', '/:lang?/home'],
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'about',
|
|
|
|
|
component: AboutView,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'products',
|
|
|
|
|
name: 'products',
|
|
|
|
|
component: ProductsView,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'contact',
|
|
|
|
|
name: 'contact',
|
|
|
|
|
component: ContactView,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2026-05-14 09:53:22 +08:00
|
|
|
]
|