DESKTOP-1OI7FFK\WZTX 8 hónapja
szülő
commit
7eb73a5819
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      frontend/src/components/login/index.vue

+ 2 - 2
frontend/src/components/login/index.vue

@@ -74,7 +74,7 @@
                 <img src="@/assets/images/login/login-lock.svg" />
               </div>
               <el-input
-                  v-model="loginForm.password"
+                  v-model="loginForm.code"
                   placeholder="请输入验证码"
                   type="text"
                   maxlength="6"
@@ -195,7 +195,7 @@ const handleLogin = async () => {
   const  res = await  useUserInfoStore.loginAction({
     "site":1,
     "username":loginForm.username,
-    "password":loginForm.password,
+    "password":activeTab.value === '0' ? loginForm.password : loginForm.code,
     "type": activeTab.value,
     "device":"aigc-photo"
   })