for loop this is useless
window.open('/admin/Download/downlads?id=' + this.idList, '_blank') // open external links in a new window
The browser will prompt whether to allow, you must click Allow to download multiple files
The code is pasted below
// 批量下载文件,类似window.open
var count = 0;
for (var i = 0; i < this.idList.length; i++) {
var hiddenIFrameID = 'hiddenDownloader' + count++;
var iframe = document.createElement('iframe');
iframe.id = hiddenIFrameID;
iframe.style.display = 'none';
document.body.appendChild(iframe);
iframe.src = '/admin/Download/downlads?id=' + this.idList[i]; //直接下载,不会弹出新的页面
}