From 0eccc798c6286aab8b473db63a42518363c8b966 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期二, 26 八月 2025 09:06:32 +0800
Subject: [PATCH] 人力资源页面

---
 src/views/login.vue |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/views/login.vue b/src/views/login.vue
index 1922fb5..f726aa1 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -70,7 +70,7 @@
 </template>
 
 <script setup>
-import { getCodeImg } from "@/api/login"
+// import { getCodeImg } from "@/api/login"
 import Cookies from "js-cookie"
 import { encrypt, decrypt } from "@/utils/jsencrypt"
 import useUserStore from '@/store/modules/user'
@@ -135,23 +135,23 @@
       }).catch(() => {
         loading.value = false
         // 閲嶆柊鑾峰彇楠岃瘉鐮�
-        if (captchaEnabled.value) {
-          getCode()
-        }
+        // if (captchaEnabled.value) {
+        //   getCode()
+        // }
       })
     }
   })
 }
 
-function getCode() {
-  getCodeImg().then(res => {
-    captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled
-    if (captchaEnabled.value) {
-      codeUrl.value = "data:image/gif;base64," + res.img
-      loginForm.value.uuid = res.uuid
-    }
-  })
-}
+// function getCode() {
+//   getCodeImg().then(res => {
+//     captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled
+//     if (captchaEnabled.value) {
+//       codeUrl.value = "data:image/gif;base64," + res.img
+//       loginForm.value.uuid = res.uuid
+//     }
+//   })
+// }
 
 function getCookie() {
   const username = Cookies.get("username")
@@ -164,7 +164,7 @@
   }
 }
 
-getCode()
+// getCode()
 getCookie()
 </script>
 

--
Gitblit v1.9.3