mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-31 03:22:18 +00:00
code
This commit is contained in:
@@ -89,6 +89,8 @@ export const streamFetch = ({
|
||||
});
|
||||
read();
|
||||
} catch (err: any) {
|
||||
console.log(111111111111111111);
|
||||
|
||||
if (err?.message === 'The user aborted a request.') {
|
||||
return resolve({
|
||||
responseText,
|
||||
@@ -102,7 +104,7 @@ export const streamFetch = ({
|
||||
};
|
||||
read();
|
||||
} catch (err: any) {
|
||||
console.log(err);
|
||||
console.log(err, 'fetch error');
|
||||
|
||||
reject(getErrText(err, '请求异常'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user