From 4f7a1f12b21acfd054037b5a012fde3f307902c8 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 27 Mar 2019 13:30:23 +0800 Subject: [PATCH] tweak --- src/mock/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mock/index.js b/src/mock/index.js index c7c8f004..a6ab5f14 100644 --- a/src/mock/index.js +++ b/src/mock/index.js @@ -11,8 +11,7 @@ Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send Mock.XHR.prototype.send = function() { if (this.custom.xhr) { this.custom.xhr.withCredentials = this.withCredentials || false - // 确保 responseType 不会丢失 - this.custom.xhr['responseType'] = this['responseType'] + this.custom.xhr.responseType = this.responseType } this.proxy_send(...arguments) }