Skip to content

Commit 7a77610

Browse files
committed
fix: correct error handling in URL processing function
1 parent 9b621bc commit 7a77610

File tree

1 file changed

+2
-2
lines changed
  • ui/src/components/ai-chat/component/chat-input-operate

1 file changed

+2
-2
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ async function saveUrl() {
12391239
async function processUrl(url: string) {
12401240
try {
12411241
const appId = props.appId || props.applicationDetails?.id;
1242-
const res = await imageApi.getFile(appId, {url});
1242+
const res = await imageApi.getFile(appId, {url})
12431243
if (res.data['status_code'] !== 200) {
12441244
MsgWarning(url + ' ' + t('chat.uploadFile.invalidUrl'));
12451245
return;
@@ -1305,7 +1305,7 @@ async function saveUrl() {
13051305
}
13061306
} catch (e) {
13071307
console.error(e);
1308-
MsgWarning(`${url} 无法访问`);
1308+
return
13091309
}
13101310
}
13111311

0 commit comments

Comments
 (0)