mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-13 22:52:26 +03:00
namespace support for actions (#24)
* namespace support for actions * renamed existing tests * added tests for store-actions with/without namespace * removed commit parts in action/dispatch tests * bugfixed failed test runs;
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ export default class {
|
||||
target = [msg.namespace || '', msg.mutation].filter((e) => !!e).join('/')
|
||||
} else if (msg.action) {
|
||||
method = 'dispatch'
|
||||
target = msg.action
|
||||
target = [msg.namespace || '', msg.action].filter((e) => !!e).join('/')
|
||||
}
|
||||
}
|
||||
this.store[method](target, msg)
|
||||
|
||||
Reference in New Issue
Block a user