This commit is contained in:
liushuai
2019-11-06 17:12:06 +08:00
parent b1f4fd3368
commit 5e184f8d4e
6 changed files with 227 additions and 230 deletions

View File

@@ -573,6 +573,7 @@ export default {
xhr.responseType = 'blob'
xhr.onload = function() {
if (xhr.status === 200) {
console.log(xhr, 1111)
const name = xhr.getResponseHeader('content-disposition').split('=')[1]
cb(xhr.response, name)
}