关于微信小程序云开发{data: Array(0), errMsg: “collection.get:ok”}

微信小程序云开发调试访问数据库
page.js
db.collection(‘test’).get({
success: function (res) {
console.log(res.data)
}
})

返回: {data: Array(0), errMsg: “collection.get:ok”}

解决:
需要在云开发控制台,数据库权限设置中,修改权限.
关于微信小程序云开发{data: Array(0), errMsg: "collection.get:ok"}
更改权限后,可以正常访问。

相关文章:

  • 2022-12-23
  • 2021-12-18
  • 2021-12-01
  • 2022-02-07
猜你喜欢
  • 2021-11-04
  • 2022-12-23
  • 2021-10-20
  • 2021-07-25
  • 2021-11-17
  • 2021-07-18
相关资源
相似解决方案