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

目前,请求方法不对直接报的是 Internal Server Error #3

Open
penggang-home opened this issue Oct 6, 2021 · 0 comments
Open

Comments

@penggang-home
Copy link

目前,请求方法不对直接报的是 Internal Server Error,查看发现是 log.js文件拿不到 router.allowedMethods
methodNotAllowed => return Internal Server Error
不知道这样是否可以
if (ctx.body && ctx.body.code && ctx.body.code !== 0) {
...
}

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