From 724ab7456643a93366b925b50c07a7796faf723d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 16 Jul 2022 12:00:33 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/5429 --- app/stage/auth.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/stage/auth.html b/app/stage/auth.html index 493df8a00..c4239b94f 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -148,7 +148,7 @@

思源 SiYuan


- +
@@ -457,6 +457,10 @@ } }) + captchaElement.previousElementSibling.addEventListener('click', function () { + this.src = '/api/system/getCaptcha' + }) + const submitAuth = () => { fetch('/api/system/loginAuth', { method: 'POST', @@ -483,6 +487,7 @@ document.querySelector('#message').classList.add('b3-snackbar--show') document.querySelector('#message').firstElementChild.textContent = response.msg inputElement.value = '' + inputElement.focus() setTimeout(() => { document.querySelector('#message').classList.remove('b3-snackbar--show') document.querySelector('#message').firstElementChild.textContent = ''