From f0da2a4468543f5d5d32df42a0d6deb6e31d93f8 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 23 Apr 2025 11:18:38 +0800 Subject: [PATCH] fix(vben5): Fixed initialization of the new application failed --- .../components/applications/ApplicationModal.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/vben5/packages/@abp/openiddict/src/components/applications/ApplicationModal.vue b/apps/vben5/packages/@abp/openiddict/src/components/applications/ApplicationModal.vue index b53b3122c..a49a9fe8b 100644 --- a/apps/vben5/packages/@abp/openiddict/src/components/applications/ApplicationModal.vue +++ b/apps/vben5/packages/@abp/openiddict/src/components/applications/ApplicationModal.vue @@ -64,11 +64,23 @@ type TabKeys = | 'props' | 'scope'; -const defaultModel = { +const defaultModel: OpenIddictApplicationDto = { applicationType: 'web', + clientId: '', clientType: 'public', consentType: 'explicit', -} as OpenIddictApplicationDto; + creationTime: new Date(), + extraProperties: {}, + id: '', + requirements: { + features: { + requirePkce: false, + }, + }, + settings: { + tokenLifetime: {}, + }, +}; const form = ref(); const formModel = ref({ ...defaultModel });