Ver Fonte

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

cfort há 2 anos atrás
pai
commit
303151bff5
1 ficheiros alterados com 2 adições e 2 exclusões
  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、直接启动
             startFlow(jsonData).then(response => {
-                const { bizKey = '', proInstId = '' } = response.variables || {}
-                this.createSnapshot(bizKey, proInstId)
                 loading.close()
                 this.$alert(`启动成功!`, {
                     showClose: false
                 }).then(() => {
+                    const { bizKey = '', proInstId = '' } = response.variables || {}
+                    this.createSnapshot(bizKey, proInstId)
                     this.startFlowDialogVisible = false
                     // 后置事件
                     this.afterScript(this.actionName, {