- 云数据库表权限改了仍然读不到数据?
[图片] [图片][图片]
03-05 - 大佬们,提示Cannot read property '_id' of undefined怎么办?
[图片] getForum() { db.collection('karticle').aggregate() .group({ _id: '$type', num: $.sum(1) }) .sort({ _id: 1 }) .end() .then(res => { console.log('分类数据', res) this.setData({ tabs: res.list }) this.getList() }) }, getList() { let type = this.data.tabs[this.data.tabCur]._id wx.cloud.callFunction({ name: "karticle", data: { action: 'getList', type: type } }) .then(res => { console.log('列表成功', res) this.setData({ list: res.result.data }) }) },
03-05