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
vite v5.0.0-beta.10
嘿,很nice的项目,不强绑定mockjs对于目前生态发展来说太重要了,mockjs已经过时了,使用中遇到如下问题,还希望作者有空看看
nice
mockjs
response
body
vite-plugin-mock
mock
The text was updated successfully, but these errors were encountered:
tsconfig.json
body: Record<string, any> | string
谢谢你的反馈🙏
Sorry, something went wrong.
feat: The body is refactored into JSON, and rawBody is added to repla…
db24254
…ce the old body. #2
v0.0.3 is released.
嘿,最新版已经满足整体需求,还有些小优化需求,作者如果有空的话,帮看看 ❤️
mock文件故意写错代码,编辑器控制台会报红色的错误信息,如下图
可以选择使用类似下面的报错,让用户不觉得那么显眼
当然更好的是,当用户把错误的代码修改正常,vite-plugin-fake-server提供个类似clearScreen配置项,配置后可以自动把之前输出的错误信息清除就完美啦
vite-plugin-fake-server
clearScreen
condorheroblog
No branches or pull requests
嘿,很
nice
的项目,不强绑定mockjs
对于目前生态发展来说太重要了,mockjs
已经过时了,使用中遇到如下问题,还希望作者有空看看response
里的body
返回的是字符串,可以返回标准对象跟vite-plugin-mock
返回格式保持一致吗mock
文件后,编辑器控制台报错信息如下:The text was updated successfully, but these errors were encountered: