From 496e88b1966f9de0838bface84723a181be19a0d Mon Sep 17 00:00:00 2001 From: Vinicius Rebel Date: Mon, 19 Nov 2018 14:03:13 -0300 Subject: [PATCH] Fix vuex modules --- src/emitter.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emitter.js b/src/emitter.js index 312e67d..ed4e868 100644 --- a/src/emitter.js +++ b/src/emitter.js @@ -97,9 +97,9 @@ export default class EventEmitter{ if(action === this.actionPrefix+event) { - Logger.info(`Dispatching Action: ${action}, Data:`, args); + Logger.info(`Dispatching Action: ${key}, Data:`, args); - this.store.dispatch(action, args); + this.store.dispatch(key, args); } @@ -113,9 +113,9 @@ export default class EventEmitter{ if(mutation === this.mutationPrefix+event) { - Logger.info(`Commiting Mutation: ${mutation}, Data:`, args); + Logger.info(`Commiting Mutation: ${key}, Data:`, args); - this.store.commit(mutation, args); + this.store.commit(key, args); }