feat(projects): new i18n function $t & login page and setting drawer config i18n

This commit is contained in:
Soybean
2023-07-23 20:19:47 +08:00
parent 458e387b68
commit 854d0bcf20
49 changed files with 1176 additions and 543 deletions

View File

@@ -1,5 +1,5 @@
import { useIconRender } from '@/composables';
import { t } from '@/locales';
import { $t } from '@/locales';
/**
* 将权限路由转换成菜单
@@ -50,7 +50,7 @@ export function translateMenuLabel(menus: App.GlobalMenuOption[]): App.GlobalMen
const menuItem: App.GlobalMenuOption = {
...menu,
children: menuChildren,
label: menu.i18nTitle ? t(menu.i18nTitle) : menu.label
label: menu.i18nTitle ? $t(menu.i18nTitle) : menu.label
};
globalMenu.push(menuItem);
});