调用以下函数报错
const db = wx.cloud.database({env: 'test-online-study'}) db.collection('exam_types').get().then(res => { console.log(res.data) }) } |
请问是什么原因导致的?
| 框架类型 | 问题类型 | 终端类型 | AppID | 基础库版本 |
|---|---|---|---|---|
| 小程序 | Bug | 工具 | wxd40a0dd77e3b0588 | 2.2.5 |
2 个回答
你好,可参考下面的回答:
嗯嗯,启动时候指定环境id就搞定了