add:日志

This commit is contained in:
zhangzq
2024-08-08 16:01:42 +08:00
parent bef29255a9
commit 9d91f7b095
13 changed files with 37 additions and 297 deletions

View File

@@ -35,6 +35,7 @@ service.interceptors.response.use(
return response.data
},
error => {
console.log(error)
// 兼容blob下载出错json提示
if (error.response.data instanceof Blob && error.response.data.type.toLowerCase().indexOf('json') !== -1) {
const reader = new FileReader()