feat: 终止请求后的调整
This commit is contained in:
@@ -59,7 +59,8 @@ function agentChatStream(params, onChunk) {
|
||||
});
|
||||
|
||||
requestTask.onChunkReceived(res => {
|
||||
if (hasError) return;
|
||||
// 检查请求是否已被中止
|
||||
if (hasError || requestTask.isAborted) return;
|
||||
const base64 = uni.arrayBufferToBase64(res.data);
|
||||
let data = '';
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user