فهرست منبع

Merge branch 'jobFair' of https://git.citupro.com/zhengnaiwen_citu/menduner into jobFair

Xiao_123 1 ماه پیش
والد
کامیت
9e44e1f10b
3فایلهای تغییر یافته به همراه12 افزوده شده و 7 حذف شده
  1. 5 5
      src/utils/auth.js
  2. 1 0
      src/views/login/components/passwordPage.vue
  3. 6 2
      src/views/login/index.vue

+ 5 - 5
src/utils/auth.js

@@ -29,17 +29,17 @@ export const setToken = (token, index = 2) => { // index: 1-招聘; 2-求职;
   return localStorage.setItem(ACCESS_TOKEN_NAME[index-1], token)
 }
 
-// 清除token
+// 清除令牌
 export const removeToken = () => {
   ACCESS_TOKEN_NAME.forEach(item => localStorage.removeItem(item))
   REFRESH_TOKEN_NAME.forEach(item => localStorage.removeItem(item))
 }
-// 获取刷新token
-export const getRefreshToken = (index) => {
-  return localStorage.getItem(ACCESS_TOKEN_NAME[index-1])
+// 获取refreshToken
+export const getRefreshToken = (index = 2) => {
+  return localStorage.getItem(REFRESH_TOKEN_NAME[index-1])
 }
 
-// 设置刷新token
+// 设置refreshToken
 export const setRefreshToken = (refreshToken, index = 2) => { // index: 1-招聘; 2-求职;
   return localStorage.setItem((REFRESH_TOKEN_NAME[index-1]), refreshToken)
 }

+ 1 - 0
src/views/login/components/passwordPage.vue

@@ -32,6 +32,7 @@
     <v-text-field
       v-model.trim="loginData.password"
       :placeholder="$t('login.enterPassword')" 
+      id="playwright_passwordInput"
       variant="outlined" 
       density="compact"
       color="primary"

+ 6 - 2
src/views/login/index.vue

@@ -69,8 +69,12 @@
             {{ $t('login.login') }}
           </v-btn>
           <div class="login-tips mt-3" v-if="tab !== 3">
-              <v-icon v-if="isAgree" size="25" color="primary" class="mr-1" @click="isAgree = !isAgree">mdi-check-circle</v-icon>
-              <v-icon v-else size="25" color="grey" class="mr-1" @click="isAgree = !isAgree">mdi-circle-outline</v-icon>
+            <v-icon v-if="isAgree" size="25" color="primary" class="mr-1" @click="isAgree = !isAgree">mdi-check-circle</v-icon>
+            <div v-else id="playwright_agreeCheckBox" @click="isAgree = !isAgree">
+              <v-icon size="25" color="grey" class="mr-1">mdi-circle-outline</v-icon>
+            </div>
+              <!-- <v-icon v-if="isAgree" id="agreeIcon" size="25" color="primary" class="mr-1" @click="isAgree = !isAgree">mdi-check-circle</v-icon>
+              <v-icon v-else id="agreeIcon1" size="25" color="grey" class="mr-1" @click="isAgree = !isAgree">mdi-circle-outline</v-icon> -->
               {{ $t('login.agreeLogin') }}
               <span class="color" style="cursor: pointer;" @click="windowOpen('/userAgreement')"> [{{ $t('login.userAgreement') }}] </span>和
               <span class="color" style="cursor: pointer;" @click="windowOpen('/privacyPolicy')">[{{ $t('login.privacyPolicy') }}]</span>