@inject NavigationManager Navigation @inject IJSRuntime JS @inject VersionInfo VersionInfo @implements IDisposable
TaxBaik 세무회계 관리 대시보드
공개 사이트 로그아웃
T
TaxBaik 세무 운영 콘솔
대시보드 세무 프로필 신고 일정 계약 관리 상담 활동 수익 추적 고객 카드 세무신고 공지사항 FAQ 관리 블로그 관리 시즌 시뮬레이터 문의 관리 설정 공통관리
Version
v@(VersionInfo.Version)
@VersionInfo.Built
@ChildContent
@code { [Parameter] public RenderFragment? ChildContent { get; set; } private bool drawerOpen = true; private bool expandedCRMGroup = true; private bool expandedCustomerGroup = false; private bool expandedWebsiteGroup = false; protected override void OnInitialized() { Navigation.LocationChanged += OnLocationChanged; } protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { await JS.InvokeVoidAsync("taxbaikAdminSession.setContext", "admin/shell", "navigation", "layout", "shell", "shell", "", "main"); await JS.InvokeVoidAsync("taxbaikAdminSession.hideLoading"); } } private void OnLocationChanged(object? sender, LocationChangedEventArgs args) { var route = new Uri(args.Location).AbsolutePath; _ = JS.InvokeVoidAsync("taxbaikAdminSession.setContext", route, "navigation", "route-change", "layout", "shell", "", route); _ = InvokeAsync(() => JS.InvokeVoidAsync("taxbaikAdminSession.hideLoading")); } private void ToggleDrawer() { drawerOpen = !drawerOpen; _ = JS.InvokeVoidAsync("taxbaikAdminSession.setContext", "admin/shell", "navigation", "drawer", drawerOpen ? "opened" : "closed", "shell", "", "drawer"); _ = JS.InvokeVoidAsync("taxbaikAdminSession.traceUiState", "admin-shell", drawerOpen ? "drawer opened" : "drawer closed"); } public void Dispose() { Navigation.LocationChanged -= OnLocationChanged; } }