fix: reload viewer page after login

This commit is contained in:
jocayn
2026-06-13 17:21:17 +08:00
parent c9d3665399
commit 61c2a0c004
2 changed files with 6 additions and 5 deletions
+1
View File
@@ -147,6 +147,7 @@
try {
const res = await fetch('/api/login', {
method: 'POST',
credentials: 'same-origin',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ role: 'admin', password: input.value })
});