fix: 修复新建前台应用报错问题

This commit is contained in:
Argo-Tianyi 2022-01-20 20:28:03 +08:00
parent 1bf2e4141c
commit 32bad4adcb
1 changed files with 2 additions and 4 deletions

View File

@ -37,6 +37,7 @@ public partial class ClientList
Title = "添加前台应用",
Component = BootstrapDynamicComponent.CreateComponent<ClientDialog>(new Dictionary<string, object?>
{
[nameof(ClientDialog.Value)] = new ClientApp(),
[nameof(ClientDialog.OnSave)] = new Func<ClientApp, Task>(app => OnSave(app)),
[nameof(ClientDialog.OnClose)] = new Func<Task>(() => 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)
{