摘要: 1、Mutations mutations 必须是同步函数,为什么? 举个例子: 官方案例 mutations: { someMutation (state) { api.callAsyncMethod(() => { state.count++ }) } } 每一条 mutation 被记录,de 阅读全文
posted @ 2021-11-09 17:26 小阿飞ZJF 阅读(35) 评论(0) 推荐(0) 编辑