Skip to content
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

使用mock.js中的increment存在问题 #479

Open
chenweihan opened this issue Jan 11, 2023 · 0 comments
Open

使用mock.js中的increment存在问题 #479

chenweihan opened this issue Jan 11, 2023 · 0 comments

Comments

@chenweihan
Copy link

"num": function({
_req,
Mock
}) {
//Mock.Random.increment(-Mock.Random.increment())
return Mock.mock('@increment()')
//return Mock.Random.increment()
},
使用Mock.Random.increment(-Mock.Random.increment())清零后为1后,注释掉。
然后请求,接口返回40003,mockjs文档是从1开始的?

是否支持的内置mock.js需要升级了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant