代码如下,数据能正常推送,但skip无效。
const db = wx.cloud.database()
const _ = db.command
console.log('[需求列表] : 开始监听')
watcherSupportList = db.collection('support')
.orderBy('createTime', 'desc')
.limit(20)
.skip(10)
.where(_.and({
isClosedLoop: isClosedLoop
}, _.or({
frontlineOpenId: that.data.loginInfo.staffOpenId
}, {
supportOpenId: that.data.loginInfo.staffOpenId
})))
.watch({
onChange: function (snapshot) {
console.log(snapshot)
},
onError: function (err) {
console.error('the watch closed because of error', err)
}
})
感谢反馈,我们会在后续版本中进行修复。