云开发有bug更新不了数据????????????
请各位大神帮我看下,我换成set就能添新记录了,updata就更新不了,直接换成数字也可以。
db.collection(‘receive’).doc(e.currentTarget.dataset._id).update({
data: {
type: false
},
success: console.log,
fail: console.error
})
![](https://image.wxopen.club/content_0b0ada24-4993-11ea-9ec1-a0999b08aadb.png)
![](https://image.wxopen.club/content_0b3108f2-4993-11ea-9ec1-a0999b08aadb.png)
请各位大神帮我看下,我换成set就能添新记录了,updata就更新不了,直接换成数字也可以。
db.collection(‘receive’).doc(e.currentTarget.dataset._id).update({
data: {
type: false
},
success: console.log,
fail: console.error
})