fix: menu search (#214)

* fix: menu search

* fix: i18

* perf: delete route name
This commit is contained in:
一万
2022-03-12 23:32:32 +08:00
committed by GitHub
parent 494ce8f41b
commit 51d08e4b82
14 changed files with 5 additions and 23 deletions

View File

@@ -50,10 +50,9 @@ export function transformI18n(
// 处理存储动态路由的title,格式 {zh:"",en:""}
if (typeof message === "object") {
debugger;
const locale: string | WritableComputedRef<string> | any =
i18n.global.locale;
return message[locale];
return message[locale?.value];
}
if (isI18n) {