|
|
@ -125,8 +125,8 @@ export function download(url, params, filename, config) {
|
|
|
|
responseType: 'blob',
|
|
|
|
responseType: 'blob',
|
|
|
|
...config
|
|
|
|
...config
|
|
|
|
}).then(async (data) => {
|
|
|
|
}).then(async (data) => {
|
|
|
|
const isLogin = await blobValidate(data);
|
|
|
|
const isBlob = blobValidate(data);
|
|
|
|
if (isLogin) {
|
|
|
|
if (isBlob) {
|
|
|
|
const blob = new Blob([data])
|
|
|
|
const blob = new Blob([data])
|
|
|
|
saveAs(blob, filename)
|
|
|
|
saveAs(blob, filename)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|