-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
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
roadhogrc.mock最佳实践 #167
Comments
遇到同样问题 mock只能放在roadhogrc.mock.js. |
|
没有sample可以follow。 照着dva的sample(antd-admin 不是用roadhog)看起来不行 |
同样的需求,看了下相关的内容,发现所有代理都配置在了mock.js里???可能是我太菜 |
@xiandongw antd-admin的4.1dev分支已经在用roadhog了,可以参考,不过好像roadhog@0.6.0-beta.3还是没有解决这个问题 #86 ,持续关注 |
roadhogrc.mock.js文件主要是用来做什么的,有大神解释一下么,谢谢!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在做一个有30多个页面的demo,模拟数据比较多,能否给一个多文件mock数据的roadhogrc.mock的最佳实践,谢谢了!
另外内容单独放在roadhogrc.mock.js中是有效的,一旦通过类似require('./mock/users')的方式引用后就没有效果了.是不是不是这么用的,谢谢!
The text was updated successfully, but these errors were encountered: