优化文件下载出现的异常(I6DLNU)

This commit is contained in:
RuoYi
2023-02-28 15:02:20 +08:00
parent 7c9903e057
commit 7fdd20c054
3 changed files with 8 additions and 14 deletions

View File

@@ -15,9 +15,9 @@ export default {
url: url,
responseType: 'blob',
headers: { 'Authorization': 'Bearer ' + getToken() }
}).then(async (res) => {
const isLogin = await blobValidate(res.data);
if (isLogin) {
}).then((res) => {
const isBlob = blobValidate(res.data);
if (isBlob) {
const blob = new Blob([res.data], { type: 'application/zip' })
this.saveAs(blob, name)
} else {