This commit is contained in:
ChenXinXin committed 2024-05-09 11:54:10 +08:00
1 parent 64fc0ea393
commit d4932fa7a8
1 file changed
+4 -4
+4 -4
View File
@@ -402,13 +402,13 @@ Vue.component("create-task-drawer", {
// 先找到开始节点 // 先找到开始节点
var beginNode = workflow.nodeList?.filter(n => n.properties.type == 'start') var beginNode = workflow.nodeList?.filter(n => n.properties.type == 'start')
if(beginNode.length != 1){ if(beginNode.length != 1){
window.vtoast.fail('审批流出错,请联系管理员!') window.vtoast.fail('审批流-开始节点出错,请联系管理员!')
throw new Error('[calcWorkflow] 审批流出错,请联系管理员!') throw new Error('[calcWorkflow] 审批流-开始节点出错,请联系管理员!')
} }
// 再找开始节点的下一个节点 // 再找开始节点的下一个节点
var nextNode = beginNode var nextNode = beginNode[0]
newWorkflow.nodeList.push(beginNode) newWorkflow.nodeList.push(beginNode[0])
do{ do{
const { node, prevline } = this.calcNode(workflow, nextNode) const { node, prevline } = this.calcNode(workflow, nextNode)