pull/199/head
xiaojunnuo 2024-10-02 01:24:08 +08:00
parent 551311d3a0
commit 2ecf1cce5b
1 changed files with 16 additions and 2 deletions

View File

@ -583,9 +583,23 @@ export default defineComponent({
const saveLoading = ref();
const run = async (stepId?: string) => {
if (props.editMode) {
message.warn("请先保存,再运行管道");
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("暂不支持运行");
return;