const encrypt = { state: { KEY: 'default', IV: 'default' }, mutations: { ENCRYPT_KEY: (state, key) => { state.KEY = key }, ENCRYPT_IV: (state, iv) => { state.IV = iv } }, action: { setEncryptKey: ({ commit }, type) => { commit('ENCRYPT_KEY', type) }, setEncryptIv: ({ commit }, type) => { commit('ENCRYPT_IV', type) } } } export default encrypt