Skip to content

Commit

Permalink
Support dispatching method
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Aug 24, 2018
1 parent 5993546 commit 34e39fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/flux.js
Expand Up @@ -13,6 +13,9 @@ const Flux = {
set(key, value) {
store[key] = value
},
dispatch(method, payload) {
return store[method](payload)
},
}

export function state(name) {
Expand Down

0 comments on commit 34e39fd

Please sign in to comment.