fix[Mock]: fixed mock bug

This commit is contained in:
Pan
2019-04-01 17:37:37 +08:00
parent b94e69be6f
commit 26d1bf09fd

View File

@@ -11,8 +11,11 @@ export function mockXHR() {
Mock.XHR.prototype.send = function() {
if (this.custom.xhr) {
this.custom.xhr.withCredentials = this.withCredentials || false
if (this.responseType) {
this.custom.xhr.responseType = this.responseType
}
}
this.proxy_send(...arguments)
}