fix: Blazor 网页跟踪确实 Pages 路径

This commit is contained in:
Argo Zhang 2020-01-30 12:05:15 +08:00
parent b7bede8921
commit 4010fb8efb
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ namespace Bootstrap.Admin.Pages.Components
if (t != null)
{
// 访问日志
if (HttpContextAccessor != null) HttpContextAccessor.HttpContext.SaveOnlineUser(Name);
if (HttpContextAccessor != null) HttpContextAccessor.HttpContext?.SaveOnlineUser($"/Pages/{Name}");
builder.OpenComponent(0, t);
builder.CloseComponent();