THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

fix[Mock]: fixed mock bug

tags/v4.0.0
Pan 1 year ago
parent
commit
26d1bf09fd
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      mock/index.js

+ 4
- 1
mock/index.js View File

@@ -11,7 +11,10 @@ export function mockXHR() {
Mock.XHR.prototype.send = function() {
if (this.custom.xhr) {
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)
}


Loading…
Cancel
Save