6/22完善引入,
This commit is contained in:
@@ -23,7 +23,7 @@ export default {
|
||||
const blob = new Blob([res.data], { type: 'application/octet-stream' });
|
||||
FileSaver.saveAs(blob, decodeURIComponent(res.headers['download-filename'] as string));
|
||||
} else {
|
||||
this.printErrMsg(res.data);
|
||||
await this.printErrMsg(res.data);
|
||||
}
|
||||
downloadLoadingInstance.close();
|
||||
} catch (r) {
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
const blob = new Blob([res.data], { type: 'application/zip' });
|
||||
FileSaver.saveAs(blob, name);
|
||||
} else {
|
||||
this.printErrMsg(res.data);
|
||||
await this.printErrMsg(res.data);
|
||||
}
|
||||
downloadLoadingInstance.close();
|
||||
} catch (r) {
|
||||
|
||||
Reference in New Issue
Block a user