Browse Source

解决 mock 与 upload 的冲突

icssoa 4 years ago
parent
commit
9edba6ebed
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/mock/index.js

+ 3 - 0
src/mock/index.js

@@ -1 +1,4 @@
 import "./chat";
+
+const xhr = new window._XMLHttpRequest();
+window.XMLHttpRequest.prototype.upload = xhr.upload;