define((require, exports, module) => {
  const defaultEvolutionModel = require('../model/evolution')
  return {
    namespaced: true,
    state () {
      return defaultEvolutionModel()
    },
    mutations: {
      updateEvolution (state, payload) {
        console.log(payload)
        if (payload.back == null) {
          Vue.set(state, defaultEvolutionModel())
        }
        else {
        let {updateData} = payload
        mergeModel(state, updateData)
        }
      }
    }
  }
})

define((require, exports, module) => {
  const defaultEvolutionModel = require('../model/evolution')
  return {
    namespaced: true,
    state () {
      return defaultEvolutionModel()
    },
    mutations: {
      updateEvolution (state, payload) {
        let {updateData} = payload
        console.log(payload)
        if (updateData.back[0] && updateData.back[0].serial_id) {
          mergeModel(state, updateData)
        }
        else {
          updateData.back = {
            0:{
              serial_id: 0,
              finished_at: 0,
              isIntervalSet: false
            }
          }
          mergeModel(state, updateData)
        }
      }
    }
  }
})

debug evolution