Merge branch 'master' into deploy

This commit is contained in:
Pan 2019-04-01 17:39:24 +08:00
commit 86fa7dd654
1 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,10 @@ export function mockXHR() {
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
if (this.responseType) {
this.custom.xhr.responseType = this.responseType
}
} }
this.proxy_send(...arguments) this.proxy_send(...arguments)
} }