mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-12-02 03:07:37 +08:00
fix: i18
This commit is contained in:
parent
ffacd43271
commit
544ffb1e38
@ -50,10 +50,9 @@ export function transformI18n(
|
|||||||
|
|
||||||
// 处理存储动态路由的title,格式 {zh:"",en:""}
|
// 处理存储动态路由的title,格式 {zh:"",en:""}
|
||||||
if (typeof message === "object") {
|
if (typeof message === "object") {
|
||||||
debugger;
|
|
||||||
const locale: string | WritableComputedRef<string> | any =
|
const locale: string | WritableComputedRef<string> | any =
|
||||||
i18n.global.locale;
|
i18n.global.locale;
|
||||||
return message[locale];
|
return message[locale?.value];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isI18n) {
|
if (isI18n) {
|
||||||
|
Loading…
Reference in New Issue
Block a user