前端(vue/js)下载文件(xlsx、ts等格式)
// 下载文件// obj是调用接口拿到的数据,name是文件名,suffix是格式后缀export function downloadFile(obj, name, suffix) { const url = window.URL.createObjectURL(new Blob([obj])) const link = document.createElement('a') link.style.display = 'none' link.href = url const fi





