fix: 功能优化。

(cherry picked from commit fd51b49c71)
This commit is contained in:
2025-08-17 22:13:03 +08:00
parent 8fdd5a4378
commit 37eccfa941
2 changed files with 4 additions and 14 deletions

View File

@@ -14,13 +14,6 @@
<view class="iconfont icon-password icon"></view>
<input v-model="loginForm.password" type="password" class="input" placeholder="请输入密码" maxlength="20" />
</view>
<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
<view class="iconfont icon-code icon"></view>
<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
<view class="login-code">
<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
</view>
</view>
<view class="flex align-center" style="margin-left: 5px;">
<up-checkbox
:customStyle="{marginBottom: '8px'}"
@@ -114,8 +107,6 @@ async function handleLogin() {
modal.msgError("请输入您的账号")
} else if (loginForm.value.password === "") {
modal.msgError("请输入您的密码")
} else if (loginForm.value.code === "" && captchaEnabled.value) {
modal.msgError("请输入验证码")
} else {
modal.loading("登录中,请等待...")
pwdLogin()