首页国际化

This commit is contained in:
猫猫guowen
2025-06-10 15:25:02 +08:00
parent 0b6d592ef8
commit 2b54284768
5 changed files with 66 additions and 31 deletions

View File

@@ -5,6 +5,7 @@ Vue.use(Router)
/* Layout */
import Layout from '@/layout'
import i18n from '@/lang'
/**
* Note: 路由配置项
@@ -70,7 +71,7 @@ export const constantRoutes = [
path: 'index',
component: () => import('@/views/index'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
meta: { title: i18n.t('viewsMain.title'), icon: 'dashboard', affix: true }
}
]
},