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] 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 } }