mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-08 03:01:56 +08:00
tweak
This commit is contained in:
parent
59508ba56f
commit
4f7a1f12b2
@ -11,8 +11,7 @@ Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send
|
|||||||
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
|
||||||
// 确保 responseType 不会丢失
|
this.custom.xhr.responseType = this.responseType
|
||||||
this.custom.xhr['responseType'] = this['responseType']
|
|
||||||
}
|
}
|
||||||
this.proxy_send(...arguments)
|
this.proxy_send(...arguments)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user