mirror of https://github.com/certd/certd
fix: 修复批量修改定时没有立即显示生效的bug
parent
f7cf7c198d
commit
c16660254b
|
|
@ -830,10 +830,6 @@ export default defineComponent({
|
||||||
saveLoading.value = true;
|
saveLoading.value = true;
|
||||||
try {
|
try {
|
||||||
if (props.options.doSave) {
|
if (props.options.doSave) {
|
||||||
if (pipeline.value.version == null) {
|
|
||||||
pipeline.value.version = 0;
|
|
||||||
}
|
|
||||||
pipeline.value.version++;
|
|
||||||
currentPipeline.value = pipeline.value;
|
currentPipeline.value = pipeline.value;
|
||||||
|
|
||||||
//移除空阶段
|
//移除空阶段
|
||||||
|
|
|
||||||
|
|
@ -255,6 +255,11 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
||||||
bean.title = pipeline.title;
|
bean.title = pipeline.title;
|
||||||
}
|
}
|
||||||
pipeline.id = bean.id;
|
pipeline.id = bean.id;
|
||||||
|
|
||||||
|
if (pipeline.version == null) {
|
||||||
|
pipeline.version = 0;
|
||||||
|
}
|
||||||
|
pipeline.version++;
|
||||||
bean.content = JSON.stringify(pipeline);
|
bean.content = JSON.stringify(pipeline);
|
||||||
await this.addOrUpdate(bean);
|
await this.addOrUpdate(bean);
|
||||||
await this.registerTrigger(bean);
|
await this.registerTrigger(bean);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue