Преглед изворни кода

调整单节点流程快照生成时机

cfort пре 2 година
родитељ
комит
303151bff5
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/business/platform/bpmn/form/action.js

+ 2 - 2
src/business/platform/bpmn/form/action.js

@@ -229,12 +229,12 @@ export default {
             })
             })
             // 1、直接启动
             // 1、直接启动
             startFlow(jsonData).then(response => {
             startFlow(jsonData).then(response => {
-                const { bizKey = '', proInstId = '' } = response.variables || {}
-                this.createSnapshot(bizKey, proInstId)
                 loading.close()
                 loading.close()
                 this.$alert(`启动成功!`, {
                 this.$alert(`启动成功!`, {
                     showClose: false
                     showClose: false
                 }).then(() => {
                 }).then(() => {
+                    const { bizKey = '', proInstId = '' } = response.variables || {}
+                    this.createSnapshot(bizKey, proInstId)
                     this.startFlowDialogVisible = false
                     this.startFlowDialogVisible = false
                     // 后置事件
                     // 后置事件
                     this.afterScript(this.actionName, {
                     this.afterScript(this.actionName, {