This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
<Router AppAssembly="@typeof(TaxBaik.WasmClient.Components.Admin.Pages.AdminIndex).Assembly">
|
<Router AppAssembly="@typeof(TaxBaik.WasmClient.Components.Admin.Pages.AdminIndex).Assembly">
|
||||||
<Found Context="routeData">
|
<Found Context="routeData">
|
||||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(TaxBaik.WasmClient.Components.Admin.Layout.MainLayout)" />
|
<RouteView RouteData="@routeData" DefaultLayout="@typeof(TaxBaik.WasmClient.Components.Admin.Layout.MainLayout)" />
|
||||||
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
|
||||||
</Found>
|
</Found>
|
||||||
<NotFound>
|
<NotFound>
|
||||||
<PageTitle>찾을 수 없음</PageTitle>
|
<PageTitle>찾을 수 없음</PageTitle>
|
||||||
|
|||||||
@@ -215,6 +215,10 @@ window.taxbaikAdminSession = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
get: function (key) {
|
||||||
|
return window.taxbaikAdminSession.getLocalStorageItem(key);
|
||||||
|
},
|
||||||
|
|
||||||
setLocalStorageItem: function (key, value) {
|
setLocalStorageItem: function (key, value) {
|
||||||
try {
|
try {
|
||||||
localStorage.setItem(key, value);
|
localStorage.setItem(key, value);
|
||||||
@@ -223,6 +227,10 @@ window.taxbaikAdminSession = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
set: function (key, value) {
|
||||||
|
return window.taxbaikAdminSession.setLocalStorageItem(key, value);
|
||||||
|
},
|
||||||
|
|
||||||
removeLocalStorageItem: function (key) {
|
removeLocalStorageItem: function (key) {
|
||||||
try {
|
try {
|
||||||
localStorage.removeItem(key);
|
localStorage.removeItem(key);
|
||||||
@@ -231,6 +239,10 @@ window.taxbaikAdminSession = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
remove: function (key) {
|
||||||
|
return window.taxbaikAdminSession.removeLocalStorageItem(key);
|
||||||
|
},
|
||||||
|
|
||||||
showLoading: function () {
|
showLoading: function () {
|
||||||
// Route transitions are handled by Blazor; avoid full-screen overlays
|
// Route transitions are handled by Blazor; avoid full-screen overlays
|
||||||
// that block drawer interaction and make the app feel frozen.
|
// that block drawer interaction and make the app feel frozen.
|
||||||
@@ -289,6 +301,13 @@ window.taxbaikAdminSession = {
|
|||||||
const form = document.getElementById('admin-login-form');
|
const form = document.getElementById('admin-login-form');
|
||||||
if (!form) return;
|
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');
|
const readyButton = form.querySelector('#admin-login-submit');
|
||||||
if (readyButton) {
|
if (readyButton) {
|
||||||
|
|||||||
Reference in New Issue
Block a user