const state = { transferStringJsonData: {} } const mutations = { SET_TRANSFER_DATA: (state, params) => { state.transferStringJsonData = params } } const actions = { setTransferStringJsonData({ commit, state }, params) { return new Promise((resolve) => { commit('SET_TRANSFER_DATA', params) resolve(params) }) } } export default { namespaced: true, mutations, state, actions }