From 80383853f9092f6a9b767ae9e281ee65b96c6b38 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 9 May 2024 17:58:21 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B7=A8=E5=9F=9F=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application-overview/component/SettingAPIKeyDialog.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/views/application-overview/component/SettingAPIKeyDialog.vue b/ui/src/views/application-overview/component/SettingAPIKeyDialog.vue index 36d3b0c8..16fa3567 100644 --- a/ui/src/views/application-overview/component/SettingAPIKeyDialog.vue +++ b/ui/src/views/application-overview/component/SettingAPIKeyDialog.vue @@ -75,7 +75,9 @@ const submit = async (formEl: FormInstance | undefined) => { const obj = { allow_cross_domain: form.value.allow_cross_domain, cross_domain_list: form.value.cross_domain_list - ? form.value.cross_domain_list.split('\n') + ? form.value.cross_domain_list.split('\n').filter(function (item: string) { + return item !== '' + }) : [] } overviewApi.putAPIKey(id as string, APIKeyId.value, obj, loading).then((res) => {