From d4932fa7a876307fc88086c5f46702261eb41c95 Mon Sep 17 00:00:00 2001 From: cxx Date: Thu, 9 May 2024 11:54:10 +0800 Subject: [PATCH] fix bug --- app/view/component/createTaskDrawer.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/view/component/createTaskDrawer.html b/app/view/component/createTaskDrawer.html index b3e7915..5d2e2bd 100644 --- a/app/view/component/createTaskDrawer.html +++ b/app/view/component/createTaskDrawer.html @@ -402,13 +402,13 @@ Vue.component("create-task-drawer", { // 先找到开始节点 var beginNode = workflow.nodeList?.filter(n => n.properties.type == 'start') if(beginNode.length != 1){ - window.vtoast.fail('审批流出错,请联系管理员!') - throw new Error('[calcWorkflow] 审批流出错,请联系管理员!') + window.vtoast.fail('审批流-开始节点出错,请联系管理员!') + throw new Error('[calcWorkflow] 审批流-开始节点出错,请联系管理员!') } // 再找开始节点的下一个节点 - var nextNode = beginNode - newWorkflow.nodeList.push(beginNode) + var nextNode = beginNode[0] + newWorkflow.nodeList.push(beginNode[0]) do{ const { node, prevline } = this.calcNode(workflow, nextNode)