From 10132807367755263c37234fdf3ad4100d1bd985 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 19 May 2025 16:39:03 +0800 Subject: [PATCH] fix: Application of multi-file style issues and modification of copywriting --- .../components/ai-chat/component/chat-input-operate/index.vue | 2 +- .../components/ai-chat/component/question-content/index.vue | 3 +-- ui/src/locales/lang/en-US/views/application-workflow.ts | 4 ++-- ui/src/locales/lang/zh-CN/views/application-workflow.ts | 4 ++-- ui/src/locales/lang/zh-Hant/views/application-workflow.ts | 4 ++-- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index ad6a86ff2cd..312586329ab 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -418,7 +418,7 @@ const uploadFile = async (file: any, fileList: any) => { formData.append('file', file.raw, file.name) // const extension = file.name.split('.').pop().toUpperCase() // 获取文件后缀名并转为小写 - +console.log(documentExtensions) if (imageExtensions.includes(extension)) { uploadImageList.value.push(file) } else if (documentExtensions.includes(extension)) { diff --git a/ui/src/components/ai-chat/component/question-content/index.vue b/ui/src/components/ai-chat/component/question-content/index.vue index 3caa9fe9e98..e422cda198f 100644 --- a/ui/src/components/ai-chat/component/question-content/index.vue +++ b/ui/src/components/ai-chat/component/question-content/index.vue @@ -200,8 +200,7 @@ onMounted(() => {}) } .media-file-width { :deep(.el-space__item) { - min-width: 40% !important; - flex-grow: 1; + width: 49% !important; } } .media_2 { diff --git a/ui/src/locales/lang/en-US/views/application-workflow.ts b/ui/src/locales/lang/en-US/views/application-workflow.ts index ba75d1efa49..36ae0839156 100644 --- a/ui/src/locales/lang/en-US/views/application-workflow.ts +++ b/ui/src/locales/lang/en-US/views/application-workflow.ts @@ -223,14 +223,14 @@ export default { }, mcpNode: { label: 'MCP Server', - text: 'Call MCP Tools through SSE/STREAMABLE_HTTP', + text: 'Call MCP Tools through SSE', getToolsSuccess: 'Get Tools Successfully', getTool: 'Get Tools', tool: 'Tool', toolParam: 'Tool Params', mcpServerTip: 'Please enter the JSON format of the MCP server config', mcpToolTip: 'Please select a tool', - configLabel: 'MCP Server Config (Only supports SSE/STREAMABLE_HTTP call method)' + configLabel: 'MCP Server Config (Only supports SSE call method)' }, imageGenerateNode: { label: 'Image Generation', diff --git a/ui/src/locales/lang/zh-CN/views/application-workflow.ts b/ui/src/locales/lang/zh-CN/views/application-workflow.ts index 89317a3cc49..5f4a4e012cb 100644 --- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts @@ -224,14 +224,14 @@ export default { }, mcpNode: { label: 'MCP 调用', - text: '通过SSE/STREAMABLE_HTTP方式执行MCP服务中的工具', + text: '通过SSE方式执行MCP服务中的工具', getToolsSuccess: '获取工具成功', getTool: '获取工具', tool: '工具', toolParam: '工具参数', mcpServerTip: '请输入JSON格式的MCP服务器配置', mcpToolTip: '请选择工具', - configLabel: 'MCP Server Config (仅支持SSE/STREAMABLE_HTTP调用方式)' + configLabel: 'MCP Server Config (仅支持SSE调用方式)' }, imageGenerateNode: { label: '图片生成', diff --git a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts index 837956ec3b8..0951a54f86b 100644 --- a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts @@ -223,14 +223,14 @@ export default { }, mcpNode: { label: 'MCP 調用', - text: '透過SSE/STREAMABLE_HTTP方式執行MCP服務中的工具', + text: '透過SSE方式執行MCP服務中的工具', getToolsSuccess: '獲取工具成功', getTool: '獲取工具', tool: '工具', toolParam: '工具變數', mcpServerTip: '請輸入JSON格式的MCP服務器配置', mcpToolTip: '請選擇工具', - configLabel: 'MCP Server Config (僅支持SSE/STREAMABLE_HTTP調用方式)' + configLabel: 'MCP Server Config (僅支持SSE調用方式)' }, imageGenerateNode: { label: '圖片生成',