Browse Source

解决 mock 与 upload 的冲突

icssoa 4 năm trước cách đây
mục cha
commit
9edba6ebed
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;