From 295928c7254c01402ea7e0df9a2cb38abec57a7f Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 30 Mar 2026 13:22:52 +0900 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20=ED=86=A0=ED=81=B0=20?= =?UTF-8?q?=EC=A0=84=EB=8B=AC=20=EB=B0=A9=EC=8B=9D=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=E2=80=94=20tkfb-core.js=20getToken()=20=ED=99=9C=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- system1-factory/web/js/production-dashboard.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system1-factory/web/js/production-dashboard.js b/system1-factory/web/js/production-dashboard.js index c59ad5b..58ae99f 100644 --- a/system1-factory/web/js/production-dashboard.js +++ b/system1-factory/web/js/production-dashboard.js @@ -48,9 +48,10 @@ function escHtml(s) { const d = document.createElement('div'); d.textContent = s async function initDashboard() { showSkeleton(); try { - const token = localStorage.getItem('sso_token') || getCookie('sso_token'); + const token = typeof getToken === 'function' ? getToken() : (localStorage.getItem('sso_token') || getCookie('sso_token')); + if (!token) { showError('로그인이 필요합니다.'); return; } const resp = await fetch('/api/dashboard/my-summary', { - headers: { 'Authorization': 'Bearer ' + token } + headers: { 'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json' } }); if (!resp.ok) throw new Error('API 오류: ' + resp.status); const result = await resp.json();