We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe55af5 commit d5bab78Copy full SHA for d5bab78
src/override.js
@@ -20,7 +20,7 @@ export default function (Vue) {
20
options.computed = options.computed || {}
21
Object.keys(state).forEach(key => {
22
options.computed[key] = function vuexBoundGetter () {
23
- return state[key](this.$store.state)
+ return state[key].call(this, this.$store.state)
24
}
25
})
26
@@ -29,7 +29,7 @@ export default function (Vue) {
29
options.methods = options.methods || {}
30
Object.keys(actions).forEach(key => {
31
options.methods[key] = function vuexBoundAction (...args) {
32
- return actions[key](this.$store, ...args)
+ return actions[key].call(this, this.$store, ...args)
33
34
35
0 commit comments