This commit is contained in:
Chuck1sn
2025-05-14 10:16:48 +08:00
commit 3cd59337e7
220 changed files with 23768 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import client from "@/api/client";
export const useJobUpdate = () => {
const updateCron = async (trigger: {
triggerName: string;
triggerGroup: string;
cron: string;
}) => {
await client.PUT("/scheduler/job/update", {
params: {
query: {
cron: trigger.cron,
},
},
body: {
name: trigger.triggerName,
group: trigger.triggerGroup,
},
});
};
return {
updateCron,
};
};