FIX: lỗi màn hình đen trên docker

This commit is contained in:
2026-08-08 10:51:58 +07:00
parent 3fc2087ee1
commit 24051a2794
7 changed files with 101 additions and 30 deletions
+2
View File
@@ -22,6 +22,8 @@ window.API_BASE_URL = window.API_BASE_URL || window.location.origin;
if (response.status === 401) {
localStorage.removeItem('sonic_token');
localStorage.removeItem('sonic_user');
// Mở màn hình đăng nhập ngay (bug 09:45 — màn đen khi session hết hạn)
if (window.__onAuthFail) window.__onAuthFail();
}
const data = await response.json().catch(() => ({}));