diff --git a/src/TaxBaik.Web.Client/Components/Admin/Routes.razor b/src/TaxBaik.Web.Client/Components/Admin/Routes.razor index 34ca1b5..f036f9a 100644 --- a/src/TaxBaik.Web.Client/Components/Admin/Routes.razor +++ b/src/TaxBaik.Web.Client/Components/Admin/Routes.razor @@ -4,7 +4,6 @@ - 찾을 수 없음 diff --git a/src/TaxBaik.Web/wwwroot/js/admin-session.js b/src/TaxBaik.Web/wwwroot/js/admin-session.js index 6b0455c..8017433 100644 --- a/src/TaxBaik.Web/wwwroot/js/admin-session.js +++ b/src/TaxBaik.Web/wwwroot/js/admin-session.js @@ -215,6 +215,10 @@ window.taxbaikAdminSession = { } }, + get: function (key) { + return window.taxbaikAdminSession.getLocalStorageItem(key); + }, + setLocalStorageItem: function (key, value) { try { localStorage.setItem(key, value); @@ -223,6 +227,10 @@ window.taxbaikAdminSession = { } }, + set: function (key, value) { + return window.taxbaikAdminSession.setLocalStorageItem(key, value); + }, + removeLocalStorageItem: function (key) { try { localStorage.removeItem(key); @@ -231,6 +239,10 @@ window.taxbaikAdminSession = { } }, + remove: function (key) { + return window.taxbaikAdminSession.removeLocalStorageItem(key); + }, + showLoading: function () { // Route transitions are handled by Blazor; avoid full-screen overlays // that block drawer interaction and make the app feel frozen. @@ -289,6 +301,13 @@ window.taxbaikAdminSession = { const form = document.getElementById('admin-login-form'); if (!form) return; + console.info('taxbaikAdminSession.bindLoginForm ready', { + path: window.location.pathname, + hasSession: !!window.taxbaikAdminSession, + hasGet: typeof window.taxbaikAdminSession.getLocalStorageItem === 'function', + hasAliasGet: typeof window.taxbaikAdminSession.get === 'function' + }); + // 업데이트 스플래시: 매번(재호출되어도) 무조건 다시 적용한다. const readyButton = form.querySelector('#admin-login-submit'); if (readyButton) {