From 5838a4f5dffe578600eeafd66b801250cd09cfb3 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 9 May 2024 17:46:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?perf:=20=E5=88=86=E6=AE=B5=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E6=87=92=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataset/component/ParagraphPreview.vue | 42 ++++++++++++++++--- ui/src/views/dataset/step/StepSecond.vue | 1 + 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/ui/src/views/dataset/component/ParagraphPreview.vue b/ui/src/views/dataset/component/ParagraphPreview.vue index b11d4eeac..4191c792f 100644 --- a/ui/src/views/dataset/component/ParagraphPreview.vue +++ b/ui/src/views/dataset/component/ParagraphPreview.vue @@ -8,14 +8,13 @@ {{ item?.name }} - +
{{ item.content.length }} 段落
- -
+
diff --git a/ui/src/views/dataset/step/StepSecond.vue b/ui/src/views/dataset/step/StepSecond.vue index 3a400ca83..acef2dedf 100644 --- a/ui/src/views/dataset/step/StepSecond.vue +++ b/ui/src/views/dataset/step/StepSecond.vue @@ -95,6 +95,7 @@

分段预览

+
From 80383853f9092f6a9b767ae9e281ee65b96c6b38 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 9 May 2024 17:58:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?perf:=20=E8=B7=A8=E5=9F=9F=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=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 36d3b0c85..16fa3567d 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) => {