Commit 512e7c1f authored by zhukai's avatar zhukai Committed by qiaozhanwei
Browse files

fix bug, add the cache logic in getInstancedetail. (#1814)

parent 0b272f9c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -513,7 +513,8 @@
            this.workerGroupId = o.workerGroupId
          }

        this.params = o.params || {};
        this.params = o.params || {}
        this.dependence = o.dependence || {}

      }
      this.isContentBox = true
+5 −0
Original line number Diff line number Diff line
@@ -147,6 +147,11 @@ export default {
        let processInstanceJson = JSON.parse(res.data.processInstanceJson)
        // tasks info
        state.tasks = processInstanceJson.tasks
        // tasks cache
        state.cacheTasks = {}
        processInstanceJson.tasks.forEach(v => {
          state.cacheTasks[v.id] = v
        })
        // global params
        state.globalParams = processInstanceJson.globalParams
        // timeout