-
Notifications
You must be signed in to change notification settings - Fork 55
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
ctx.req.url打印出来的路径问题 #8
Comments
我回去看一下 ,这个点还在加班😕 |
@guanren 应该是顺序写错了 把这行代码 koa2 是洋葱模型, 中间件进入的时候会被压倒一个栈里面 ,执行compose 方法来调用中间件函数.源码如下 从右往左。
server/app.js
|
@guanren 我已经改了 你pull 一下 看可以吗🙂 |
listen on:3008 打印出来的还是文件路径,导致并没有到renderToString这一步 |
对的,我也是发现这个问题,导致页面源码无法渲染出对应的源码而完全走了静态资源 |
同问,并没有看到renderToString的内容 |
请问大家有什么解决办法吗? |
我在render方法中打印出来ctx.req.url得到的是/favicon.ico,并不是/或者/about
The text was updated successfully, but these errors were encountered: