We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RT~
The text was updated successfully, but these errors were encountered:
同希望,文档里没有提到不支持fetch 使用的时候发现一直报错json解析错误,后来才发现因为没有拦截fetch 直接请求了index.html
Sorry, something went wrong.
貌似作者已经不维护了,下面是一个支持拦截 fetch 的版本 zjffun/Mock-support-intercept-fetch
fetch
使用的话:
npm install @zjffun/mockjs
fetch 的拦截还是比较好实现的,因为拦截后返回 resolve 为 response 对象(通过 Response - Web APIs | MDN 创建)的 promise 对象就行。
No branches or pull requests
RT~
The text was updated successfully, but these errors were encountered: