This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
<Router AppAssembly="@typeof(TaxBaik.WasmClient.Components.Admin.Pages.AdminIndex).Assembly">
|
||||
<Found Context="routeData">
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(TaxBaik.WasmClient.Components.Admin.Layout.MainLayout)" />
|
||||
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||
</Found>
|
||||
<NotFound>
|
||||
<PageTitle>찾을 수 없음</PageTitle>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user