fix: backend+frontend full audit - 15 bugs fixed across all files

This commit is contained in:
2026-07-13 04:07:18 +08:00
parent 532efb962f
commit 4f4df7e479
6 changed files with 13 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ const Auth = {
token() { return localStorage.getItem(this.TK); },
user() { try { return JSON.parse(localStorage.getItem(this.US)); } catch { return null; } },
logged() { return !!this.token(); },
logged() { return !!(this.token() && this.user()); },
async login(username, password) {
const d = await API.post('/auth/login', { username, password });