feat: UI i18n depends on router (#289)

This commit is contained in:
Dream Hunter
2024-06-01 12:12:13 +08:00
committed by GitHub
parent 7a368d7b23
commit b792c196c1
38 changed files with 106 additions and 102 deletions
+1 -2
View File
@@ -9,12 +9,11 @@ import { useGlobalState } from '../../store'
// @ts-ignore
import Login from '../common/Login.vue';
const { localeCache, jwt } = useGlobalState()
const { jwt } = useGlobalState()
// @ts-ignore
const message = useMessage()
const { t } = useI18n({
locale: localeCache.value || 'zh',
messages: {
en: {
tip: 'These addresses are stored in your browser, maybe loss if you clear the browser cache.',