fix: upload a image can clear other message

This commit is contained in:
jialin
2024-10-17 16:06:38 +08:00
parent fbefb2014d
commit e10c5e28b5
12 changed files with 505 additions and 17 deletions
+1 -2
View File
@@ -172,7 +172,7 @@ const useSetChunkRequest = () => {
let result = response;
let cres = '';
console.log('chunkrequest============e==', e);
console.log('chunkrequest============e==', result);
if (contentType === 'json') {
const currentRes = sliceData(response, e.loaded, loadedSize);
result = parseData(currentRes);
@@ -194,7 +194,6 @@ const useSetChunkRequest = () => {
retryCount.current -= 1;
}
} catch (error) {
console.log('error=============', error);
if (!axios.isCancel(error)) {
setRequestReadyState(4);
if (retryCount.current > 0) {