代码:
// 从in_theaters云数据库里获取三条数据
let res = await db.collection("in_theaters").where({}).limit(3).get()
console.log('res=>',res)
运行结果:获取不到数据库数据
解决:修改数据库权限
改完权限之后运行:成功拿到
代码:
// 从in_theaters云数据库里获取三条数据
let res = await db.collection("in_theaters").where({}).limit(3).get()
console.log('res=>',res)
运行结果:获取不到数据库数据
解决:修改数据库权限
改完权限之后运行:成功拿到