feat: 添加提交前验证

This commit is contained in:
xingyu
2022-10-17 11:24:22 +08:00
parent aa983a6fa9
commit 855d23aec3
26 changed files with 548 additions and 397 deletions

View File

@@ -111,6 +111,10 @@ const handleLogin = async (params) => {
}
loginData.loginForm.captchaVerification = params.captchaVerification
const res = await LoginApi.loginApi(loginData.loginForm)
if (!res) {
loginLoading.value = false
return
}
setToken(res)
if (!redirect.value) {
redirect.value = '/'