feat: 添加提交前验证
This commit is contained in:
@@ -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 = '/'
|
||||
|
||||
Reference in New Issue
Block a user