对比数据库,打印,_id没错,timeTeam.time_stamp也没错,success执行成功,字段对应也没错
数据就是没有修改,全都没有修改
db.collection('appoint')
.where({
_id: _id,
'timeTeam.time_stamp': _index,
})
.update({
data: {
'timeTeam.$.cycle': _cycle,
'timeTeam.$.end_time': _end,
'timeTeam.$.start_time': _start,
'timeTeam.$.peple': _peple,
},
success: res => {
wx.showToast({
title: '修改保存成功',
success: res => {
setTimeout(function () {
wx.navigateBack({})
}, 1500)
}
})
}
})