下载文件

1、通过a标签

 let link = document.createElement('a')
 link.href = row.upgradeFileUrl;
 link.download = row.upgradeFileUrl;
 link.click()

2、直接打开

window.location.href = row.upgradeFileUrl;
原文地址:https://www.cnblogs.com/1955/p/9896547.html