更改Vuex 的store 中的状态的唯一方法是提交mutation。Vuex 中的mutation 非常类似于事件:每个mutation 都有一个字符串的事件类型(type) 和一个回调函数(handler)。
確定! 回上一頁