Files
Code-Create/src/routes.ts

38 lines
743 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'
export const routes: RouteRecordRaw[] = [
2026-05-14 13:08:29 +08:00
{
path: '/:lang?',
children: [
{
path: '',
component: HomeView,
2026-05-15 10:29:21 +08:00
alias: ['/:lang?', '/:lang?/home']
2026-05-14 13:08:29 +08:00
},
{
path: 'about',
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
},
{
path: 'contact',
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
]