From 2ecf1cce5b85271ab2bd0c54b250688ca5408bdd Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 2 Oct 2024 01:24:08 +0800 Subject: [PATCH] chore: --- .../views/certd/pipeline/pipeline/index.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue index f9dd3f4b..73ccfe68 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue @@ -583,8 +583,22 @@ export default defineComponent({ const saveLoading = ref(); const run = async (stepId?: string) => { if (props.editMode) { - message.warn("请先保存,再运行管道"); - return; + const res = await new Promise((resolve, reject) => { + Modal.confirm({ + title: "需要保存才能运行管道", + content: "是否先保存", + onOk() { + save(); + resolve(true); + }, + onCancel() { + resolve(false); + } + }); + }); + if (!res) { + return; + } } if (!props.options.doTrigger) { message.warn("暂不支持运行");