This commit is contained in:
FairyEver
2019-12-31 13:18:51 +08:00
parent e8a231fb60
commit 670cb3dc83

View File

@@ -4,8 +4,11 @@ export default function (Mock) {
Mock.XHR.prototype.send = function () {
if (this.custom.xhr) {
this.custom.xhr.withCredentials = this.withCredentials || false
// https://github.com/d2-projects/d2-admin/issues/254
if (!this.custom.async) {
this.custom.xhr.responseType = this.responseType
}
}
this.__send.apply(this, arguments)
}
}