From 12525682204db9a13d33c46f6f0394495d4f4aa0 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Thu, 14 May 2020 19:03:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/login/Login.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/login/Login.vue b/frontend/src/login/Login.vue index 5bea90c089..58836fa1bf 100644 --- a/frontend/src/login/Login.vue +++ b/frontend/src/login/Login.vue @@ -109,10 +109,9 @@ saveLocalStorage(response); let language = response.data.language; - if (language == "") { + if (!language) { this.$get("language", response => { language = response.data - this.$setLang(language); this.changeLanguage(); }) }