mutation 同步操作
action 异步操作
state, getter, mutation, action( dispatch, commit), module
state提供一个响应式数据
getter 借助Vue的计算属性computed来实现缓存
mutation 更改state
action 触发mutation方法
module 动态添加State到响应式数据中
mutation 同步操作
action 异步操作
state, getter, mutation, action( dispatch, commit), module
state提供一个响应式数据
getter 借助Vue的计算属性computed来实现缓存
mutation 更改state
action 触发mutation方法
module 动态添加State到响应式数据中