vuex

mutation 同步操作

action 异步操作

state, getter, mutation, action( dispatch, commit), module

state提供一个响应式数据

getter 借助Vue的计算属性computed来实现缓存

mutation 更改state

action 触发mutation方法

module 动态添加State到响应式数据中

原文地址:https://www.cnblogs.com/hanxiangmin/p/11336857.html