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

关于mockjs嵌套url匹配问题 #503

Open
admin233 opened this issue Mar 28, 2023 · 1 comment
Open

关于mockjs嵌套url匹配问题 #503

admin233 opened this issue Mar 28, 2023 · 1 comment

Comments

@admin233
Copy link

当项目mock里面存在两个如下的url:①/report/list ②/sqlserver/report/list
业务在请求为②/sqlserver/report/list时候,如果①/report/list排在前面,会优先匹配到①/report/list而不是②/sqlserver/report/list。

@LeoZeda
Copy link

LeoZeda commented Mar 26, 2024

感觉可以用正则匹配,/^/report/list/, 加上匹配开头

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

2 participants