jinx 1 년 전
부모
커밋
fc176db872
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/components/header/Login.vue

+ 5 - 2
src/components/header/Login.vue

@@ -33,8 +33,8 @@
                         <div class="tips" v-show="errors.message">{{ errors.message }}</div>
                     </div>
                     <div class="links">
-                        <a href="http://test.4dkankan.com/#/login/forget?from=%2F">{{ $t('header.forgetPassword') }}</a>
-                        <a href="http://test.4dkankan.com/#/login/register?from=%2F">{{ $t('header.resigter') }}</a>
+                        <a @click="checkLanguage" href="http://test.4dkankan.com/#/login/forget?from=%2F">{{ $t('header.forgetPassword') }}</a>
+                        <a @click="checkLanguage" href="http://test.4dkankan.com/#/login/register?from=%2F">{{ $t('header.resigter') }}</a>
                     </div>
                 </div>
             </div>
@@ -68,6 +68,9 @@ const getAuth = () => {
         })
         .catch(() => {})
 }
+const checkLanguage = () => {
+    localStorage.setItem('language', getLocale())
+}
 const onLogin = () => {
     errors.value = {}
     if (!username.value) {