叙述:content 是下载的内容 title 是下载文件的文件名
sequenceDownload(content,title) {
if(content==undefined||content==''){
this.$message.warning('暂无导出数据!')
}else{
const element = document.createElement('a')
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(content))
element.setAttribute('download', title)
element.style.display = 'none'
element.click()
}
}