修改调接口的思路?
async formSubmit(e) {
const res = await commitmentAdd(this.data.list);
if(res.code == 200){
app.apiBack(res, app.showSuccessToast(() => {
wx.navigateBack();
}, “保存成功”));
}else{
console.log(‘form发生了submit事件,携带数据为:’, res)
}
},
哪里出问题了吗?