From 74cf29ad13278c8a52013436b633087a7cd9d615 Mon Sep 17 00:00:00 2001 From: zhangpeihang <948869991@qq.com> Date: Fri, 14 Jan 2022 10:39:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blazor/admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs index 61f22872..c277e96d 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs @@ -52,7 +52,7 @@ namespace BootstrapAdmin.Web.Shared private bool Lock { get; set; } - private string? LockInterval { get; set; } + private int LockInterval { get; set; } [NotNull] private string? Icon { get; set; } @@ -82,7 +82,7 @@ namespace BootstrapAdmin.Web.Shared string GetIcon(string icon) => icon.Contains("://", StringComparison.OrdinalIgnoreCase) ? icon : string.Format("{0}{1}", DictsService.GetIconFolderPath(), icon); Lock = DictsService.GetAutoLockScreen(); - LockInterval = DictsService.GetAutoLockScreenInterval(); + LockInterval = Convert.ToInt32(DictsService.GetAutoLockScreenInterval()); } private Task OnAuthorizing(string url) => SecurityService.AuhorizingNavigation(Context.UserName, url);