fix: ui refresh page after login (#230)

This commit is contained in:
sigoden 2023-06-03 10:09:02 +08:00 committed by GitHub
parent 4f3a8d275b
commit 8be545d3da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -445,6 +445,7 @@ function setupAuth() {
$loginBtn.addEventListener("click", async () => { $loginBtn.addEventListener("click", async () => {
try { try {
await checkAuth() await checkAuth()
location.reload();
} catch (err) { } catch (err) {
alert(err.message); alert(err.message);
} }