Vuex commit

在Store构造函数中 // bind commit and dispatch to self const store = this; const { dispatch, commit } = this; this.dispatch = function boundDispatch (type, payload) { return dispatch.call(store, type, payload) }; this.commit = function boundCommit (type, payload, options) { return commit.cal...