Skip to content

Commit 6ecbcd1

Browse files
committed
fix(fetch): Don't modify call to fetch if the request is not mocked
1 parent d0815b8 commit 6ecbcd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interceptor/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class FetchInterceptor extends Base{
5252
const mockItem:MockItem | null = me.matchMockRequest(requestUrl, method);
5353

5454
if (!mockItem) {
55-
me.fetch(requestUrl, params).then(resolve).catch(reject);
55+
me.fetch(input, init).then(resolve).catch(reject);
5656
return;
5757
}
5858

0 commit comments

Comments
 (0)