Skip to content

Commit

Permalink
[*] Add Turnstile error tip
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Dec 25, 2024
1 parent 96595ce commit 2e3b9fc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/views/auth/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,18 @@
v-model="token"
@error="
(code) => {
showTurnstile = false
message.error(`验证码加载失败,错误代码: ${code}`)
if (code.startsWith(200)) {
message.error(`验证失败,状态异常,错误代码: ${code}`)
} else if (code.startsWith(300)) {
message.error(`验证失败,当前环境异常,错误代码: ${code}`)
} else if (code.startsWith(600)) {
message.error(`验证失败,错误代码: ${code}`)
} else {
message.error(`验证错误,错误代码: ${code}`)
}
setTimeout(() => {
showTurnstile = false
}, 3000)
}
"
@unsupported="
Expand Down

0 comments on commit 2e3b9fc

Please sign in to comment.