fix(web): handleSSE bugfix

This commit is contained in:
zhaoying
2026-01-26 16:00:47 +08:00
parent 2eff6b2e9d
commit 7bfa7b3f02

View File

@@ -131,7 +131,7 @@ export const handleSSE = async (url: string, data: any, onMessage?: (data: SSEMe
break
case 400:
const error = await response.json();
message.warning(errorData.error);
message.warning(error.error);
throw error || 'Bad Request';
case 504:
const errorJson = await response.json();