diff --git a/src/home/timing.vue b/src/home/timing.vue index 57ec38c..7fde3e6 100644 --- a/src/home/timing.vue +++ b/src/home/timing.vue @@ -144,14 +144,14 @@ function addTime() { }); } /** 删除 */ -function remove(id) { +function remove(timeId) { // 确定提示框 Taro.showModal({ title: "提示", content: `确认删除该定时信息?`, success: function (res) { if (res.confirm) { - delTimeCtrl({ id }).then((res) => { + delTimeCtrl({ id: timeId }).then((res) => { if (res.code == 200) { state.show = true; state.msg = "删除成功";