2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-18 17:20:37 +03:00

Fix custom mutations feature + test

This commit is contained in:
sharkykh
2018-09-12 19:13:09 +03:00
parent 05b80e9426
commit 967f58f317
4 changed files with 85 additions and 24 deletions
+2 -3
View File
@@ -95,9 +95,8 @@ export default class {
}
}
if (this.mutations) {
this.store[this.mutations[method] || method](target, msg)
} else {
this.store[method](target, msg)
target = this.mutations[target] || target
}
this.store[method](target, msg)
}
}