feat(infra): 增加定时任务同步入口

- 为 vue3 同步任务按钮补充 infra:job:create 权限
- 为 vben antd、antdv-next、ele 增加 syncJob API
- 为 vben 定时任务列表增加同步任务按钮和确认/loading 流程
This commit is contained in:
YunaiV
2026-06-14 01:21:37 +08:00
parent 3014428775
commit c814d31cd3
6 changed files with 86 additions and 0 deletions

View File

@@ -75,3 +75,8 @@ export function runJob(id: number) {
export function getJobNextTimes(id: number) {
return requestClient.get(`/infra/job/get_next_times?id=${id}`);
}
/** 同步定时任务到 Quartz */
export function syncJob() {
return requestClient.post('/infra/job/sync');
}