2
0
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:
ThomasKlessen
2017-11-13 17:52:01 +01:00
committed by Nathan
parent 8ea77c55d7
commit 782d400953
2 changed files with 60 additions and 6 deletions
+1 -1
View File
@@ -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)