umijs / umi-request

A request tool based on fetch.
2.21k stars 336 forks source link

mock 无法拦截请求,axios可以,umi-request不行,如何让它被拦截? #293

Open SilvaQ opened 2 years ago

SilvaQ commented 2 years ago

这个有解决方案了么?

Originally posted by @SilvaQ in https://github.com/umijs/umi-request/issues/121#issuecomment-1049666611

Tenodec commented 2 years ago

fetch 默认不支持被mockjs拦截,umi全家桶是新开的本地express服务器,请求的是本地地址。与mockjs拦截不同的