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

for (const i in keySplited) { 会把原型上的remove方法当作索引去数组取值,肯定取不到值导致路径匹配失败呀 #15

Open
AprildreamMI opened this issue Feb 24, 2025 · 2 comments

Comments

@AprildreamMI
Copy link

Image

Image

@AprildreamMI
Copy link
Author

直接导致mock这个功能无法使用呀,是怎么产生mock效果的

@AprildreamMI
Copy link
Author

AprildreamMI commented Feb 24, 2025

最新版本,按文档正常使用,发现路径无法匹配,报错 keySplitedItem 不是方法,调试源码发现,源码对数组使用 for in,最终会把数组原型上的 remove 方法当成字符串进行索引取值,取不到值,所以导致路径匹配失败

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