fixbug: 🐛 任务调度器删除

This commit is contained in:
bunny 2024-10-16 16:57:28 +08:00
parent 070c0d34bf
commit 5f393fd291
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ export function onUpdate(row: any) {
* * Schedulers视图 * * Schedulers视图
*/ */
export const onDelete = async (row: any) => { export const onDelete = async (row: any) => {
const id = row.id; const data = { jobName: row.jobName, jobGroup: row.jobGroup };
// 是否确认删除 // 是否确认删除
const result = await messageBox({ const result = await messageBox({
@ -105,7 +105,7 @@ export const onDelete = async (row: any) => {
if (!result) return; if (!result) return;
// 删除数据 // 删除数据
await schedulersStore.deleteSchedulers([id]); await schedulersStore.deleteSchedulers(data);
await onSearch(); await onSearch();
}; };