// Excel文件下载
export function output(flieName, response) {
let name = flieName + '.xlsx'
if (name.startsWith('\"') && name.endsWith('\"')) {
name = name.substring(1, name.length - 1)
}
name = decodeURI(name)
const blob = new Blob([response])
const url = window.URL.createObjectURL(blob)
const a = document.createElement('a')
a.style.display = 'none'
a.href = url
a.download = name
a.click()
window.URL.revokeObjectURL(url)
a.remove()
}