export function handleDown(filename) {
return request({
url: '/data/execl',
method: 'get',
responseType: 'arraybuffer',
}).then((response) => {
// 处理返回的文件流
const blob = new Blob([response.data], { type: 'application/zip' });
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = filename;
document.body.appendChild(link);
link.click();
window.setTimeout(function () {
URL.revokeObjectURL(blob);
document.body.removeChild(link);
}, 0);
});
}