fix: 首次访问获取客户端默认语言/静态路由title
This commit is contained in:
@@ -6,7 +6,7 @@ import enUS from './locales/en-US';
|
||||
|
||||
const i18n = createI18n({
|
||||
legacy: false, // 使用 Composition API 的方式创建 i18n 实例
|
||||
locale: localGet(CACHE_LOCAL_I18N) || 'zh_CN', // 默认显示语言
|
||||
locale: localGet(CACHE_LOCAL_I18N) || 'en_US', // 默认显示语言
|
||||
messages: {
|
||||
zh_CN: zhCN,
|
||||
en_US: enUS,
|
||||
|
||||
@@ -124,6 +124,10 @@ export default {
|
||||
// 静态路由
|
||||
router: {
|
||||
index: "Home",
|
||||
login: "Sign In",
|
||||
register: 'Registrations',
|
||||
page403: 'No Access',
|
||||
page404: 'Match Page Not Found',
|
||||
account: {
|
||||
index: "Personal Center",
|
||||
profile: "Personal Info",
|
||||
|
||||
@@ -124,6 +124,10 @@ export default {
|
||||
// 静态路由
|
||||
router: {
|
||||
index: "主页",
|
||||
login: "登录",
|
||||
register: '注册',
|
||||
page403: '没有访问权限',
|
||||
page404: '找不到匹配页面',
|
||||
account: {
|
||||
index: "个人中心",
|
||||
profile: "个人信息",
|
||||
|
||||
Reference in New Issue
Block a user