新增加用户数据导出

This commit is contained in:
izory
2021-11-20 20:01:41 +08:00
parent ec5ea3ef9b
commit 156b4b5222
4 changed files with 87 additions and 18 deletions

View File

@@ -84,6 +84,7 @@ export function resolveExcel(res, fileName) {
link.style.display = 'none'
link.href = url
link.setAttribute('download', fileName)// 文件名
link.setAttribute('target', "_black")
document.body.appendChild(link)
link.click()
document.body.removeChild(link) // 下载完成移除元素