From f3d36868c3048ac17c7d74bf3b48da14bb1615a6 Mon Sep 17 00:00:00 2001 From: itchaox <1462831573@qq.com> Date: Sat, 3 Aug 2024 15:30:36 +0800 Subject: [PATCH] feat: Show language --- src/renderer/src/components/MainPage.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/MainPage.vue b/src/renderer/src/components/MainPage.vue index 32feaff..37a6b40 100644 --- a/src/renderer/src/components/MainPage.vue +++ b/src/renderer/src/components/MainPage.vue @@ -224,11 +224,10 @@ onMounted(async () => { } } - languageId.value = languageToUse + loadLocalStorage() + languageId.value = languageToUse i18n.global.locale = languageId.value - - loadLocalStorage() }) // 切换语言