text: define((require, exports, module) => {
    const defaultBattleLog = require('../model/battle_log')
    const defaultForgeLog = require('../model/forge_log')
    const defaultPracticeLog = require('../model/practice_log')
    const defaultDutyLog = require('../model/duty_log')
    const defaultEnemyLog =  require('../model/enemy_log')
    return {
      namespaced: true,
      state () {
        return {
          battle: {},
          forge: {},
          practice: {},
          duty: {},
          enemy: {}
        }
      },
      mutations: {
        addPracticeLog (state, payload) {
          let { logId } = payload
          if (!logId) return
          if (!state.practice[logId]) {
            Vue.set(state.practice, logId, defaultPracticeLog())
          }
          mergeModel(state.practice[logId], payload)
        },
        addBattleLog (state, payload) {
          let { logId } = payload
          if (!logId) return
          if (!state.battle[logId]) {
            Vue.set(state.battle, logId, defaultBattleLog())
          }
          mergeModel(state.battle[logId], payload)
        },
        addForgeLog (state, payload) {
          let { logId } = payload
          if (!logId) return
          if (!state.forge[logId]) {
            Vue.set(state.forge, logId, defaultForgeLog())
          }
          mergeModel(state.forge[logId], payload)
        },
        addDutyLog (state, payload) {
          let { logId } = payload
          if (!logId) return
          if (!state.duty[logId]) {
            Vue.set(state.duty, logId, defaultDutyLog())
          }
          mergeModel(state.duty[logId], payload)
        },
        addEnemyLog (state, payload) {
          let { logId } = payload
          if (!logId) return
          if (!state.enemy[logId]) {
            Vue.set(state.enemy, logId, defaultEnemyLog())
          }
          mergeModel(state.enemy[logId], payload)
        },
      }
    }
  })
  