fix #254
This commit is contained in:
@@ -4,7 +4,10 @@ export default function (Mock) {
|
|||||||
Mock.XHR.prototype.send = function () {
|
Mock.XHR.prototype.send = function () {
|
||||||
if (this.custom.xhr) {
|
if (this.custom.xhr) {
|
||||||
this.custom.xhr.withCredentials = this.withCredentials || false
|
this.custom.xhr.withCredentials = this.withCredentials || false
|
||||||
this.custom.xhr.responseType = this.responseType
|
// https://github.com/d2-projects/d2-admin/issues/254
|
||||||
|
if (!this.custom.async) {
|
||||||
|
this.custom.xhr.responseType = this.responseType
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.__send.apply(this, arguments)
|
this.__send.apply(this, arguments)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user