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
Sometimes, we need to configure the delay of the mock globally.
新增 mock.delay 配置。
export default { mock: { delay: 1000 } }
其他:delay 除了支持 number 之外,还支持字符串表示个范围,比如 delay: '500-1000',就做 500ms 到 1000ms 的范围随机。(如果有更好的配置方式,请补充。)
No response
nice to have
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
Sometimes, we need to configure the delay of the mock globally.
Solution
新增 mock.delay 配置。
其他:delay 除了支持 number 之外,还支持字符串表示个范围,比如 delay: '500-1000',就做 500ms 到 1000ms 的范围随机。(如果有更好的配置方式,请补充。)
Alternatives
No response
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: