1. 文件下载
function download (response) {
const blob = new Blob([response.data], { type:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8 })
const fileName = response.headers['content-disposition'].split('"')[1]
const link = document.createElement('a')
link.download=decodeURI(fileName)
link.href=window.URL.createObjectURL(blob)
link.click()
window.URL.revokeObjectURL(link.href)
}