wip(Login): Login developing

This commit is contained in:
kailong321200875
2022-01-03 18:01:43 +08:00
parent 3810b8c3b2
commit 4d52f7bf58
21 changed files with 1798 additions and 52 deletions

View File

@@ -22,7 +22,7 @@ export function useLocale() {
async function changeLocale(locale: LocaleType) {
const globalI18n = i18n.global
const langModule = (await import(`../../locales/${locale}.ts`)) as any
const langModule = await import(`../../locales/${locale}.ts`)
globalI18n.setLocaleMessage(locale, langModule.default)