2017年8月2日
摘要: 使用vuex做简单的加减 效果 在组件中提交 Mutations 你可以在组件中使用 this.$store.commit('xxx') 提交 mutation,或者使用 mapMutations 辅助函数将组件中的 methods 映射为 store.commit 调用(需要在根节点注入 stor 阅读全文
posted @ 2017-08-02 15:14 执候 阅读(174) 评论(0) 推荐(0)