Skip to content

Commit 80c136b

Browse files
committed
fix(i18n): switch info
1 parent e48763b commit 80c136b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hooks/locale.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export default function useLocale() {
1414
})
1515

1616
const onChangeLocale = () => {
17-
Message.success(t('navbar.action.locale'))
17+
nextTick(() => {
18+
Message.success(t('navbar.action.locale'))
19+
})
1820
}
21+
1922
return { currentLocale, onChangeLocale }
2023
}

0 commit comments

Comments
 (0)