mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
fix: 修复流水线复制出错的bug
This commit is contained in:
@@ -51,7 +51,10 @@ export default function ({ crudExpose, context: { selectedRowKeys } }: CreateCru
|
|||||||
delete form.lastVars;
|
delete form.lastVars;
|
||||||
delete form.createTime;
|
delete form.createTime;
|
||||||
delete form.id;
|
delete form.id;
|
||||||
let pipeline = JSON.parse(form.content);
|
let pipeline = form.content;
|
||||||
|
if (typeof pipeline === "string" && pipeline.startsWith("{")) {
|
||||||
|
pipeline = JSON.parse(form.content);
|
||||||
|
}
|
||||||
pipeline.title = form.title;
|
pipeline.title = form.title;
|
||||||
pipeline = setRunnableIds(pipeline);
|
pipeline = setRunnableIds(pipeline);
|
||||||
form.content = JSON.stringify(pipeline);
|
form.content = JSON.stringify(pipeline);
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ export class AliyunDeployCertToESA extends AbstractTaskPlugin {
|
|||||||
try{
|
try{
|
||||||
await this.clearSiteCert(client,siteId);
|
await this.clearSiteCert(client,siteId);
|
||||||
}catch (e) {
|
}catch (e) {
|
||||||
this.logger.error("清理站点[${siteId}]证书失败",e)
|
this.logger.error(`清理站点[${siteId}]证书失败`,e)
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -160,7 +160,7 @@ export class AliyunDeployCertToESA extends AbstractTaskPlugin {
|
|||||||
try{
|
try{
|
||||||
await this.clearSiteCert(client,siteId);
|
await this.clearSiteCert(client,siteId);
|
||||||
}catch (e) {
|
}catch (e) {
|
||||||
this.logger.error("清理站点[${siteId}]证书失败",e)
|
this.logger.error(`清理站点[${siteId}]证书失败`,e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user