我试图从控制器调用用户的数据,但是我得到以下错误: Can not destructure property auth
of 'undefined‘or 'null’。
async datosPersona({ auth }) {
console.log(auth.username)
}
async datosPersona({ auth }) {
}
这两个示例中的任何一个都会抛出相同的错误
我正在使用adonisjs
发布于 2019-05-10 00:24:01
问题出在电话里。你正在做的某件事等同于
datosPersona(undefined)
https://stackoverflow.com/questions/56063747
复制相似问题