Переглянути джерело

Merge remote-tracking branch 'origin/dev-frontend'

panqiuyao 8 місяців тому
батько
коміт
89f90d4a04
1 змінених файлів з 2 додано та 2 видалено
  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"
   })