提交 26d1bf09 编写于 作者: P Pan

fix[Mock]: fixed mock bug

上级 b94e69be
...@@ -11,8 +11,11 @@ export function mockXHR() { ...@@ -11,8 +11,11 @@ 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
if (this.responseType) {
this.custom.xhr.responseType = this.responseType this.custom.xhr.responseType = this.responseType
} }
}
this.proxy_send(...arguments) this.proxy_send(...arguments)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册