This commit is contained in:
archer
2023-07-17 22:05:45 +08:00
parent 509ca92f0a
commit ecce182a20
16 changed files with 1395 additions and 1422 deletions

View File

@@ -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, '请求异常'));
}