小程序云开发时获取数据库数据报Environment not found错误
调用以下函数报错
const db = wx.cloud.database({env: 'test-online-study'}) db.collection('exam_types').get().then(res => { console.log(res.data) }) } |
请问是什么原因导致的?
调用以下函数报错
const db = wx.cloud.database({env: 'test-online-study'}) db.collection('exam_types').get().then(res => { console.log(res.data) }) } |
请问是什么原因导致的?