fix:修复bug
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@ export function useI18n() {
|
||||
if (!instance || !instance.proxy) {
|
||||
return {
|
||||
t: (key) => key,
|
||||
locale: 'zh-CN',
|
||||
locale: 'en_US',
|
||||
i18n: null
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@ export function useI18n() {
|
||||
}
|
||||
return key
|
||||
},
|
||||
locale: proxy.$i18n?.locale || 'zh-CN',
|
||||
locale: proxy.$i18n?.locale || 'en_US',
|
||||
i18n: proxy.$i18n
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user