diff --git a/src/blazor/admin/BootstrapAdmin.Web/Components/NavigationTree.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Components/NavigationTree.razor.cs index 7fcf7728..3589e599 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Components/NavigationTree.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Components/NavigationTree.razor.cs @@ -29,5 +29,5 @@ public partial class NavigationTree return Task.CompletedTask; } - private string GetApp(string app) => DictService.GetApps().FirstOrDefault(i => i.Value == app)?.Text ?? "未设置"; + private string GetApp(string? app) => DictService.GetApps().FirstOrDefault(i => i.Value == app)?.Text ?? "未设置"; }