fix[Mock]: add xhr.responseType (#1779)

This commit is contained in:
sun ao 2019-03-27 13:31:34 +08:00 committed by 花裤衩
parent 331173ffee
commit 9d975b5eff
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send
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
} }
this.proxy_send(...arguments) this.proxy_send(...arguments)
} }