多语言

This commit is contained in:
李志鹏
2026-05-18 10:39:52 +08:00
parent 4587a59a89
commit f282adfd87
9 changed files with 161 additions and 16 deletions

View File

@@ -3,10 +3,10 @@ import AboutView from './pages/about-us/index.vue'
import ContactView from './pages/ContactView.vue'
import HomeView from './pages/home/index.vue'
import ProductsView from './pages/ProductsView.vue'
import { LANGS } from './lang'
export const routes: RouteRecordRaw[] = [
{
path: '/:lang(en|zh-cn|zh-tw)?',
path: `/:lang(${LANGS.join('|')})?`,
children: [
{
path: '',