From 9edba6ebed9a66b4ce8d7b469d4e06f46e40473e Mon Sep 17 00:00:00 2001 From: icssoa <2570063477@qq.com> Date: Mon, 22 Mar 2021 21:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20mock=20=E4=B8=8E=20upload?= =?UTF-8?q?=20=E7=9A=84=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mock/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mock/index.js b/src/mock/index.js index 7e7ede5..d73509c 100644 --- a/src/mock/index.js +++ b/src/mock/index.js @@ -1 +1,4 @@ import "./chat"; + +const xhr = new window._XMLHttpRequest(); +window.XMLHttpRequest.prototype.upload = xhr.upload;