diff --git a/src/blazor/admin/BootstrapAdmin.Web/Components/ClientList.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Components/ClientList.razor.cs index 3943ead4..725ddcb6 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Components/ClientList.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Components/ClientList.razor.cs @@ -37,6 +37,7 @@ public partial class ClientList Title = "添加前台应用", Component = BootstrapDynamicComponent.CreateComponent(new Dictionary { + [nameof(ClientDialog.Value)] = new ClientApp(), [nameof(ClientDialog.OnSave)] = new Func(app => OnSave(app)), [nameof(ClientDialog.OnClose)] = new Func(() => OnClose()) }), @@ -68,10 +69,7 @@ public partial class ClientList return Task.CompletedTask; } - private async Task OnClose() - { - await Option.Dialog.Close(); - } + private Task OnClose() => Option.Dialog.Close(); private async Task OnSave(ClientApp app) {