1、store.commit({'type':'mutation','parameter':'value'});
store.dispatch('action');
2、获取state保存的值
store.state.state
1、store.commit({'type':'mutation','parameter':'value'});
store.dispatch('action');
2、获取state保存的值
store.state.state
转载于:https://www.cnblogs.com/gpzhen/p/7196726.html