This commit is contained in:
lrl 2022-03-12 18:25:21 +08:00
parent ffacd43271
commit 544ffb1e38

View File

@ -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) {