mirror of
https://github.com/certd/certd.git
synced 2026-04-26 05:37:25 +08:00
chore:
This commit is contained in:
@@ -583,8 +583,22 @@ export default defineComponent({
|
|||||||
const saveLoading = ref();
|
const saveLoading = ref();
|
||||||
const run = async (stepId?: string) => {
|
const run = async (stepId?: string) => {
|
||||||
if (props.editMode) {
|
if (props.editMode) {
|
||||||
message.warn("请先保存,再运行管道");
|
const res = await new Promise((resolve, reject) => {
|
||||||
return;
|
Modal.confirm({
|
||||||
|
title: "需要保存才能运行管道",
|
||||||
|
content: "是否先保存",
|
||||||
|
onOk() {
|
||||||
|
save();
|
||||||
|
resolve(true);
|
||||||
|
},
|
||||||
|
onCancel() {
|
||||||
|
resolve(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
if (!res) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!props.options.doTrigger) {
|
if (!props.options.doTrigger) {
|
||||||
message.warn("暂不支持运行");
|
message.warn("暂不支持运行");
|
||||||
|
|||||||
Reference in New Issue
Block a user