fix: 修复类型转换错误

This commit is contained in:
zhangpeihang 2022-01-14 10:39:38 +08:00
parent 86640d3b64
commit 74cf29ad13
1 changed files with 2 additions and 2 deletions

View File

@ -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<bool> OnAuthorizing(string url) => SecurityService.AuhorizingNavigation(Context.UserName, url);