Former-commit-id: 50e08bb3fb1b893d05ede1a112937243a71cd61b
This commit is contained in:
Generated
+939
-775
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
"js-cookie": "^2.2.0",
|
"js-cookie": "^2.2.0",
|
||||||
"lodash": "^4.17.11",
|
"lodash": "^4.17.11",
|
||||||
"lowdb": "^1.0.0",
|
"lowdb": "^1.0.0",
|
||||||
"mockjs": "^1.0.1-beta3",
|
"mockjs": "^1.1.0",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"qs": "^6.7.0",
|
"qs": "^6.7.0",
|
||||||
"screenfull": "^4.2.0",
|
"screenfull": "^4.2.0",
|
||||||
|
|||||||
@@ -2,7 +2,10 @@ export default function (Mock) {
|
|||||||
// http://cnine.me/note/FrontEnd/mock-lose-cookies-dbg.html
|
// http://cnine.me/note/FrontEnd/mock-lose-cookies-dbg.html
|
||||||
Mock.XHR.prototype.__send = Mock.XHR.prototype.send
|
Mock.XHR.prototype.__send = Mock.XHR.prototype.send
|
||||||
Mock.XHR.prototype.send = function () {
|
Mock.XHR.prototype.send = function () {
|
||||||
if (this.custom.xhr) this.custom.xhr.withCredentials = this.withCredentials || false
|
if (this.custom.xhr) {
|
||||||
|
this.custom.xhr.withCredentials = this.withCredentials || false
|
||||||
|
this.custom.xhr.responseType = this.responseType
|
||||||
|
}
|
||||||
this.__send.apply(this, arguments)
|
this.__send.apply(this, arguments)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user