Skip to content

Commit 9d975b5

Browse files
eggachecatPanJiaChen
authored andcommitted
fix[Mock]: add xhr.responseType (PanJiaChen#1779)
1 parent 331173f commit 9d975b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mock/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send
1111
Mock.XHR.prototype.send = function() {
1212
if (this.custom.xhr) {
1313
this.custom.xhr.withCredentials = this.withCredentials || false
14+
this.custom.xhr.responseType = this.responseType
1415
}
1516
this.proxy_send(...arguments)
1617
}

0 commit comments

Comments
 (0)