Skip to content

Commit 9edba6e

Browse files
committed
解决 mock 与 upload 的冲突
1 parent 670157d commit 9edba6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mock/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
import "./chat";
2+
3+
const xhr = new window._XMLHttpRequest();
4+
window.XMLHttpRequest.prototype.upload = xhr.upload;

0 commit comments

Comments
 (0)