先判断有没有cookie,没有的话渲染login_index在login_index中有个表单提交post请求api/user/login,点击提交按钮,为何路由不到那个app.use('api',xxx)呢 ?通过console.log知else里的if里的内容确实执行到了 查看完整描述