From b3d15c5f574f3322f5f26dec163b0fff42551862 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Thu, 18 Dec 2025 21:58:22 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 DataBaseView.vue 中的标签闭合问题 - 在 mineru 解析器中添加空行提高可读性 - 更新 roadmap.md 文档内容 - 优化 AiTextarea.vue 组件样式和图标 --- docs/latest/changelog/roadmap.md | 2 ++ src/plugins/mineru_official_parser.py | 1 + src/plugins/mineru_parser.py | 1 + web/src/components/AiTextarea.vue | 12 ++++-------- web/src/views/DataBaseView.vue | 3 +-- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/latest/changelog/roadmap.md b/docs/latest/changelog/roadmap.md index 53497c14..9add7e57 100644 --- a/docs/latest/changelog/roadmap.md +++ b/docs/latest/changelog/roadmap.md @@ -16,6 +16,8 @@ - 部分异常状态下,智能体的模型名称出现重叠[#279](https://github.com/xerrors/Yuxi-Know/issues/279) - DeepSeek 官方接口适配会出现问题 - 目前的知识库的图片存在公开访问风险 +- 工具传递给模型的时候,使用英文,显示的时候,使用中文(尽量保持一致) +- 首页加载的问题 ### 新增 - 新增对于上传附件的智能体中间件,详见[文档](https://xerrors.github.io/Yuxi-Know/latest/advanced/agents-config.html#%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0%E4%B8%AD%E9%97%B4%E4%BB%B6) diff --git a/src/plugins/mineru_official_parser.py b/src/plugins/mineru_official_parser.py index 53a65ce5..0c6268a0 100644 --- a/src/plugins/mineru_official_parser.py +++ b/src/plugins/mineru_official_parser.py @@ -155,6 +155,7 @@ class MinerUOfficialParser(BaseDocumentProcessor): return text import asyncio + from src.knowledge.indexing import _process_zip_file try: diff --git a/src/plugins/mineru_parser.py b/src/plugins/mineru_parser.py index 5189a86f..f83cecac 100644 --- a/src/plugins/mineru_parser.py +++ b/src/plugins/mineru_parser.py @@ -190,6 +190,7 @@ class MinerUParser(BaseDocumentProcessor): try: import asyncio + processed = asyncio.run(_process_zip_file(tmp_zip.name, params.get("db_id"))) text = processed["markdown_content"] finally: diff --git a/web/src/components/AiTextarea.vue b/web/src/components/AiTextarea.vue index 78c9823b..422355fd 100644 --- a/web/src/components/AiTextarea.vue +++ b/web/src/components/AiTextarea.vue @@ -16,11 +16,9 @@ @click="generateDescription" > - AI + 润色 @@ -30,6 +28,7 @@ import { ref } from 'vue' import { message } from 'ant-design-vue' import { databaseApi } from '@/apis/knowledge_api' +import { Sparkles } from 'lucide-vue-next' const props = defineProps({ modelValue: { @@ -88,6 +87,7 @@ const generateDescription = async () => { .ai-btn { position: absolute; + opacity: 0.9; top: 4px; right: 4px; z-index: 1; @@ -112,9 +112,5 @@ const generateDescription = async () => { font-weight: 500; } } - - :deep(.ant-input) { - padding-right: 50px; - } } diff --git a/web/src/views/DataBaseView.vue b/web/src/views/DataBaseView.vue index 5fa860c9..90b1be4f 100644 --- a/web/src/views/DataBaseView.vue +++ b/web/src/views/DataBaseView.vue @@ -225,8 +225,7 @@ > {{ getKbTypeLabel(database.kb_type || 'lightrag') }} - - +