From d5bbf48d015269b84f0f03456b78250bc9dd1237 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 18 Oct 2024 15:50:29 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/handle/impl/pdf_split_handle.py | 2 +- .../component/LimitDialog.vue | 58 ++++++++++++------- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/apps/common/handle/impl/pdf_split_handle.py b/apps/common/handle/impl/pdf_split_handle.py index 99e238783..d5eb779c3 100644 --- a/apps/common/handle/impl/pdf_split_handle.py +++ b/apps/common/handle/impl/pdf_split_handle.py @@ -157,7 +157,7 @@ class PdfSplitHandle(BaseSplitHandle): chapter_text += text # 提取文本 # 保存章节内容和章节标题 - chapters.append({"title": chapter_title, "content": chapter_text}) + chapters.append({"title": chapter_title, "content": chapter_text if chapter_text else chapter_title}) return chapters @staticmethod diff --git a/ui/src/views/application-overview/component/LimitDialog.vue b/ui/src/views/application-overview/component/LimitDialog.vue index 8fb3003bc..4def9c668 100644 --- a/ui/src/views/application-overview/component/LimitDialog.vue +++ b/ui/src/views/application-overview/component/LimitDialog.vue @@ -5,7 +5,7 @@ :close-on-click-modal="false" :close-on-press-escape="false" > - +