refactor: 更新登录日志结果改用 Tag 组件
This commit is contained in:
parent
95bec59886
commit
23e43ff248
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BootstrapBlazor" Version="6.2.7-beta08" />
|
<PackageReference Include="BootstrapBlazor" Version="6.2.7-beta09" />
|
||||||
<PackageReference Include="Longbow.Security.Cryptography" Version="5.2.0" />
|
<PackageReference Include="Longbow.Security.Cryptography" Version="5.2.0" />
|
||||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.1" />
|
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.1" />
|
||||||
<PackageReference Include="PetaPoco.Extensions" Version="5.2.0" />
|
<PackageReference Include="PetaPoco.Extensions" Version="5.2.0" />
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
using BootstrapAdmin.DataAccess.PetaPoco.Services;
|
|
||||||
using Microsoft.Extensions.Primitives;
|
|
||||||
|
|
||||||
namespace BootstrapAdmin.Caching;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public static class TokenManager
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="key"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static IChangeToken GetOrAdd(string key)
|
|
||||||
{
|
|
||||||
IChangeToken? token = null;
|
|
||||||
if (key.StartsWith($"{nameof(NavigationService)}-"))
|
|
||||||
{
|
|
||||||
// 菜单需要更新
|
|
||||||
//token = new CompositeChangeToken();
|
|
||||||
}
|
|
||||||
return token;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -13,11 +13,11 @@
|
||||||
<Template Context="v">
|
<Template Context="v">
|
||||||
@if (v.Value == "登录成功")
|
@if (v.Value == "登录成功")
|
||||||
{
|
{
|
||||||
<Badge Color="Color.Success">@v.Value</Badge>
|
<Tag Color="Color.Success">@v.Value</Tag>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<Badge Color="Color.Danger">@v.Value</Badge>
|
<Tag Color="Color.Danger">@v.Value</Tag>
|
||||||
}
|
}
|
||||||
</Template>
|
</Template>
|
||||||
</TableColumn>
|
</TableColumn>
|
||||||
|
|
Loading…
Reference in New Issue