Vanessa 2022-07-16 16:23:59 +08:00
parent 17f2a47b1c
commit 2fad03e028

View file

@ -458,7 +458,7 @@
})
captchaElement.previousElementSibling.addEventListener('click', function () {
this.src = '/api/system/getCaptcha'
this.src = `/api/system/getCaptcha?v=${new Date().getTime()}`
})
const submitAuth = () => {
@ -477,7 +477,7 @@
}
if (response.code === 1) {
captchaElement.previousElementSibling.src = '/api/system/getCaptcha'
captchaElement.previousElementSibling.src = `/api/system/getCaptcha?v=${new Date().getTime()}`
captchaElement.parentElement.style.display = 'block'
} else {
captchaElement.parentElement.style.display = 'none'