Toast
and this.setData
the callback function
1. Toast callback function
Toast({
type: 'success',
message: res.msg,
onClose: () => {
// 回调函数 onClose
this.setData({
textareaValue: '',
})
},
});
2. The callback function of this.setData
this.setData(
{
attendance_detail: res.data,
},
()=>{
// 回调函数
this.reGetData(res.data.data);
}
)