hookehuyr

fix 处理保存时错误提示问题

......@@ -1907,8 +1907,8 @@ export default {
}
})
});
return;
}
return result.length;
}
const saveData = async () => {
// 清空错误提示
......@@ -1926,8 +1926,9 @@ export default {
// TAG: 检查节点是否完整
const checkResult = await checkAllFlowNodePropertyAPI({ flow_id: +flow_id })
if (checkResult.code) {
noticeError(checkResult);
return;
if (noticeError(checkResult)) {
return;
}
} else {
// 保存流程图结构
saveFlowData();
......@@ -1943,8 +1944,9 @@ export default {
// 检查点击节点后通过了,但是还有未通过的节点没有点击时
const checkResult = await checkAllFlowNodePropertyAPI({ flow_id: +flow_id })
if (checkResult.code) {
noticeError(checkResult);
return;
if (noticeError(checkResult)) {
return;
}
}
ElMessageBox.confirm(
......