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

yapi-pro1.9.5版本高级mock的自定义脚本功能有问题 #10

Open
huanhuboke opened this issue Jul 21, 2021 · 1 comment
Open

Comments

@huanhuboke
Copy link

版本号

~
1.9.5

什么问题

~
高级MOCK的自定义脚本有问题,只要开启了高级mock脚本功能,接口访问就直接未响应,用了1.9.1版本就没有这个问题

如何复现此问题

~

什么浏览器

~

什么系统(Linux, Windows, macOS)

@HHH1994
Copy link

HHH1994 commented Aug 6, 2021

在sandbox中
10 // 执行动态代码
11 const result = await safeVm.run(script, context)

之前添加 script += \n return {mockJson, resHeader, httpCode, delay}; 可以修复

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