Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/Code-Create

This commit is contained in:
2026-05-14 15:13:08 +08:00
18 changed files with 1027 additions and 37 deletions

View File

@@ -5,24 +5,29 @@ import HomeView from './pages/home/index.vue'
import ProductsView from './pages/ProductsView.vue'
export const routes: RouteRecordRaw[] = [
{
path: '/',
name: 'home',
component: HomeView,
},
{
path: '/about',
name: 'about',
component: AboutView,
},
{
path: '/products',
name: 'products',
component: ProductsView,
},
{
path: '/contact',
name: 'contact',
component: ContactView,
},
{
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,
},
],
},
]