|
@@ -272,13 +272,20 @@ qmInstance.interceptors.response.use(
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- const data = error.response.data;
|
|
|
- console.log(data);
|
|
|
+ let data = error.response.data;
|
|
|
if (data instanceof Blob) {
|
|
|
- data.text().then((res) => {
|
|
|
- if (typeof res === "string") res = JSON.parse(res);
|
|
|
- showDescOrNot(res);
|
|
|
- });
|
|
|
+ // data = data.read
|
|
|
+ const fr = new FileReader();
|
|
|
+ fr.addEventListener(
|
|
|
+ "load",
|
|
|
+ () => {
|
|
|
+ let res = fr.result;
|
|
|
+ if (typeof res === "string") res = JSON.parse(res);
|
|
|
+ showDescOrNot(res);
|
|
|
+ },
|
|
|
+ false
|
|
|
+ );
|
|
|
+ fr.readAsText(data);
|
|
|
} else {
|
|
|
showDescOrNot(data);
|
|
|
}
|