diff --git a/src/pages/Login.vue b/src/pages/Login.vue index 0136f1e..24f55ea 100644 --- a/src/pages/Login.vue +++ b/src/pages/Login.vue @@ -534,7 +534,7 @@ const login = async () => { return; } // 如果是验证码登录,且手机号或验证码为空 - if (tab.value === "code" && (!telNum.value || !password.value)) { + if (tab.value === "code" && (!telNum.value || !code.value)) { errMsg.value = "手机号或验证码不能为空"; isErr.value = true; return;