mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
fix: 修复重启certd后,再启用流水线,不会自动执行的bug
This commit is contained in:
@@ -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,
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user