const reader = new FileReader()
let that = this
reader.readAsText(res.data, 'utf-8')
reader.onload = function () {
let errorMsg = JSON.parse(reader.result)
console.log('🚀 ~ .then ~ errorMsg:', errorMsg)
that.$message.error(errorMsg.msg) // 获取后端返回的错误信息
exportLoading.close()
}
if (res.data.type === ‘application/json’)时代表blob是json可以转译,别的报错