From 32bad4adcb1e724d31da6b17457c7678626ed33a Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Thu, 20 Jan 2022 20:28:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E5=89=8D=E5=8F=B0=E5=BA=94=E7=94=A8=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/BootstrapAdmin.Web/Components/ClientList.razor.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) {