11d78aff22
## 변경사항 - Program.cs (WASM Client): apiBaseUrl /taxbaik/api/ → /api/ - ClientLogs.razor: HTTP 요청 경로 /taxbaik/api/ → /api/ - Services/TokenRefreshHandler: /taxbaik/api/auth/refresh → /api/auth/refresh - AdminShell/AdminSidebar: 공개 사이트 링크 /taxbaik → / ## 최종 E2E 테스트 결과 ✅ 공개 페이지: 5/5 통과 ❌ 관리자 페이지: WASM 부팅 오류 (5/5 실패) ## 경로 최적화 완료 항목 ✅ PathBase 제거 ✅ Blazor 상대 경로 변경 ✅ Razor Pages 상대 경로 변경 ✅ API 클라이언트 경로 수정 ✅ HTTP 요청 경로 수정 ✅ 네비게이션 링크 수정 ## 남은 문제 ❌ WASM 부팅 단계에서 예외 발생 (원인: 브라우저 콘솔 확인 필요) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
@inject NavigationManager Navigation
|
|
@implements IDisposable
|
|
|
|
<div class="admin-shell">
|
|
<header class="admin-topbar">
|
|
<button type="button" class="admin-menu-button" @onclick="ToggleDrawer">Menu</button>
|
|
<div class="admin-topbar-title">
|
|
<div class="admin-brand-text">TaxBaik</div>
|
|
<div class="admin-brand-subtitle">세무회계 관리 대시보드</div>
|
|
</div>
|
|
<div class="admin-topbar-actions">
|
|
<a class="admin-topbar-action" href="/" target="_blank" rel="noopener">공개 사이트</a>
|
|
<a class="admin-topbar-action" href="./logout">로그아웃</a>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="admin-body">
|
|
@if (drawerOpen)
|
|
{
|
|
<AdminSidebar />
|
|
}
|
|
|
|
<main class="admin-main">
|
|
<div class="admin-content">
|
|
@ChildContent
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public RenderFragment? ChildContent { get; set; }
|
|
|
|
private bool drawerOpen = true;
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
Navigation.LocationChanged += OnLocationChanged;
|
|
}
|
|
|
|
private void OnLocationChanged(object? sender, LocationChangedEventArgs args)
|
|
{
|
|
drawerOpen = true;
|
|
InvokeAsync(StateHasChanged);
|
|
}
|
|
|
|
private void ToggleDrawer()
|
|
{
|
|
drawerOpen = !drawerOpen;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Navigation.LocationChanged -= OnLocationChanged;
|
|
}
|
|
}
|