mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 11:27:17 +08:00
fix: 计划任务修改后未刷新
This commit is contained in:
@@ -198,8 +198,8 @@ const onPageSizeChange = (pageSize: number) => {
|
||||
|
||||
const handleStatusChange = async (row: any) => {
|
||||
cron.status(row.id, !row.status).then(() => {
|
||||
row.status = !row.status
|
||||
window.$message.success('修改成功')
|
||||
row.status = !row.status
|
||||
})
|
||||
}
|
||||
|
||||
@@ -218,8 +218,8 @@ const handleEdit = async (row: any) => {
|
||||
const handleDelete = async (id: number) => {
|
||||
await cron.delete(id).then(() => {
|
||||
window.$message.success('删除成功')
|
||||
window.$bus.emit('task:refresh-cron')
|
||||
})
|
||||
onPageChange(pagination.page)
|
||||
}
|
||||
|
||||
const saveTaskEdit = async () => {
|
||||
@@ -227,6 +227,7 @@ const saveTaskEdit = async () => {
|
||||
.update(editTask.value.id, editTask.value.name, editTask.value.time, editTask.value.script)
|
||||
.then(() => {
|
||||
window.$message.success('修改成功')
|
||||
window.$bus.emit('task:refresh-cron')
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user