const encrypt = { state: { KEY: 'B3AC90F688974749', IV: 'A39F3975DC5D4D38' }, 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