fix: 定时任务删除不了问题修复。
This commit is contained in:
@@ -144,14 +144,14 @@ function addTime() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 删除 */
|
/** 删除 */
|
||||||
function remove(id) {
|
function remove(timeId) {
|
||||||
// 确定提示框
|
// 确定提示框
|
||||||
Taro.showModal({
|
Taro.showModal({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
content: `确认删除该定时信息?`,
|
content: `确认删除该定时信息?`,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
delTimeCtrl({ id }).then((res) => {
|
delTimeCtrl({ id: timeId }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
state.show = true;
|
state.show = true;
|
||||||
state.msg = "删除成功";
|
state.msg = "删除成功";
|
||||||
|
|||||||
Reference in New Issue
Block a user