From 7a77610bcf48bd8b5e305a84c9d03e3a04eb023f Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 2 Dec 2025 16:00:59 +0800 Subject: [PATCH 1/2] fix: correct error handling in URL processing function --- .../components/ai-chat/component/chat-input-operate/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 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 b9c5d6a9f..390823fbc 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 @@ -1239,7 +1239,7 @@ async function saveUrl() { async function processUrl(url: string) { try { const appId = props.appId || props.applicationDetails?.id; - const res = await imageApi.getFile(appId, {url}); + const res = await imageApi.getFile(appId, {url}) if (res.data['status_code'] !== 200) { MsgWarning(url + ' ' + t('chat.uploadFile.invalidUrl')); return; @@ -1305,7 +1305,7 @@ async function saveUrl() { } } catch (e) { console.error(e); - MsgWarning(`${url} 无法访问`); + return } } From 6ad6241e15e28bdc82fcf6c054c52b2618367ace Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 2 Dec 2025 16:03:39 +0800 Subject: [PATCH 2/2] fix: correct logo image width in KnowledgeSetting component --- ui/src/views/knowledge/KnowledgeSetting.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/knowledge/KnowledgeSetting.vue b/ui/src/views/knowledge/KnowledgeSetting.vue index cfe54f7ef..61e3f55ca 100644 --- a/ui/src/views/knowledge/KnowledgeSetting.vue +++ b/ui/src/views/knowledge/KnowledgeSetting.vue @@ -82,7 +82,7 @@ >
- +