diff --git a/src/views/index.vue b/src/views/index.vue
index 0298b6f542cb4e4b52230ae272bf9c0eaa6a88a4..12d7dcf613d50f40c0949df92a48dd0733336740 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -104,6 +104,15 @@ export default {
       this.showPopup = !this.showPopup;
     },
     setLanguagePack() {
+      let lang = "en";
+      if (this.currentLanguage === 0) {
+        lang = "en";
+      } else if (this.currentLanguage === 1) {
+        lang = "fr";
+      } else if (this.currentLanguage === 2) {
+        lang = "es";
+      }
+      localStorage.setItem("lang", lang);
       let _languagePack = {
         tipsString: {
           initInitial: "请调整姿势",
@@ -617,8 +626,8 @@ export default {
       } else if (index === 2) {
         lang = "es";
       }
-      localStorage.setItem("lang", lang);
       this.$i18n.locale = lang;
+      localStorage.setItem("lang", lang);
     },
     async clickAuthCamera() {
       this.setLanguagePack();