淡淡烟草味2017-07-04 13:44:14 0 1 743
const register = async (ctx, next) => {
console.log(123)
const opts = ctx.request.body
const newUser = await user.save(opts)
console.log(newUser)
}
123能打印,new User也能打印, 然后到 save 的方法这里 就停住了 什么反应都没有??
这是怎么回事??
看了 issues https://github.com/Automattic... 还是没有解决??怎么办??
女神的闺蜜爱上我 2017-07-04 13:46:141楼
阿西吧 就是mongodb连接的原因、把代码直接放在最上边就可以了
赞 +0添加回复