Skip to content

Commit 496e88b

Browse files
author
Vinicius Rebel
committed
Fix vuex modules
1 parent e0b37e3 commit 496e88b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/emitter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ export default class EventEmitter{
9797

9898
if(action === this.actionPrefix+event) {
9999

100-
Logger.info(`Dispatching Action: ${action}, Data:`, args);
100+
Logger.info(`Dispatching Action: ${key}, Data:`, args);
101101

102-
this.store.dispatch(action, args);
102+
this.store.dispatch(key, args);
103103

104104
}
105105

@@ -113,9 +113,9 @@ export default class EventEmitter{
113113

114114
if(mutation === this.mutationPrefix+event) {
115115

116-
Logger.info(`Commiting Mutation: ${mutation}, Data:`, args);
116+
Logger.info(`Commiting Mutation: ${key}, Data:`, args);
117117

118-
this.store.commit(mutation, args);
118+
this.store.commit(key, args);
119119

120120
}
121121

0 commit comments

Comments
 (0)