摘要: mapMutations 工具函数会将 store 中的 commit 方法映射到组件的 methods 中。和 mapActions 的功能几乎一样,我们来直接看它的实现: 函数的实现几乎也和 mapActions 一样,唯一差别就是映射的是 store 的 commit 方法。为了更直观地理解, 阅读全文
posted @ 2017-10-08 18:00 每天都要进步一点点 阅读(2540) 评论(0) 推荐(0)