Skip to content

Commit

Permalink
[*] Better VAPTCHA loading bar status
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami authored Jan 16, 2025
1 parent ffc2781 commit 2caaa36
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/views/auth/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,15 @@ async function loadCaptcha() {
const script = document.createElement('script')
script.src = 'https://v-cn.vaptcha.com/v3.js'
document.head.appendChild(script)
vaptchaInserted = true
script.onload = () => {
showVAPTCHA.value = true
ldb.finish()
}
vaptchaInserted = true
} else showVAPTCHA.value = true
ldb.finish()
} else {
showVAPTCHA.value = true
ldb.finish()
}
break
default:
message.error('后端返回数据错误')
Expand Down

0 comments on commit 2caaa36

Please sign in to comment.