Explorar o código

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

cfort %!s(int64=2) %!d(string=hai) anos
pai
achega
303151bff5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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, {