mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-13 20:00:25 +08:00
16 lines
358 B
JavaScript
16 lines
358 B
JavaScript
|
|
Tea.context(function () {
|
||
|
|
this.deleteTask = function (taskId) {
|
||
|
|
let that = this
|
||
|
|
teaweb.confirm("确定要删除这个发送任务吗?", function () {
|
||
|
|
that.$post(".delete")
|
||
|
|
.params({
|
||
|
|
taskId: taskId
|
||
|
|
})
|
||
|
|
.success(function () {
|
||
|
|
teaweb.successToast("删除成功", null, function () {
|
||
|
|
teaweb.reload()
|
||
|
|
})
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|