This commit is contained in:
李志鹏
2026-05-15 17:31:43 +08:00
parent 85708bb5a4
commit d237dab098
8 changed files with 325 additions and 106 deletions

View File

@@ -6,12 +6,11 @@ import ProductsView from './pages/ProductsView.vue'
export const routes: RouteRecordRaw[] = [
{
path: '/:lang?',
path: '/:lang(en|zh-cn|zh-tw)?',
children: [
{
path: '',
component: HomeView,
alias: ['/:lang?', '/:lang?/home']
},
{
path: 'about',
@@ -35,3 +34,4 @@ export const routes: RouteRecordRaw[] = [
]
}
]