File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -373,14 +373,14 @@ function makeLocalGetters (store, namespace) {
373
373
function registerMutation ( store , type , handler , local ) {
374
374
const entry = store . _mutations [ type ] || ( store . _mutations [ type ] = [ ] )
375
375
entry . push ( function wrappedMutationHandler ( payload ) {
376
- handler ( local . state , payload )
376
+ handler . call ( store , local . state , payload )
377
377
} )
378
378
}
379
379
380
380
function registerAction ( store , type , handler , local ) {
381
381
const entry = store . _actions [ type ] || ( store . _actions [ type ] = [ ] )
382
382
entry . push ( function wrappedActionHandler ( payload , cb ) {
383
- let res = handler ( {
383
+ let res = handler . call ( store , {
384
384
dispatch : local . dispatch ,
385
385
commit : local . commit ,
386
386
getters : local . getters ,
You can’t perform that action at this time.
0 commit comments