fix: 修复重启certd后,再启用流水线,不会自动执行的bug

This commit is contained in:
xiaojunnuo
2026-01-06 13:38:10 +08:00
parent 6b6668f73b
commit 468ccbf2b7
4 changed files with 42 additions and 8 deletions
@@ -163,3 +163,11 @@ export async function ReadCertDetail(crt: string): Promise<any> {
data: { crt },
});
}
export async function ToggleDisabled(req: { id: number; disabled: boolean }) {
return await request({
url: apiPrefix + "/disabled",
method: "post",
data: req,
});
}
@@ -484,9 +484,9 @@ export default function ({ crudExpose, context: { selectedRowKeys } }: CreateCru
vModel: "checked",
},
async valueChange({ row, key, value }) {
return await api.UpdateObj({
return await api.ToggleDisabled({
id: row.id,
disabled: row[key],
disabled: value,
});
},
},