vuex中关于mapState,mapGetters,mapMutations,mapActions的作用

https://blog.csdn.net/a641832648/article/details/62233213

map其实就是一个在store文件中的映射而已,就是不用让你要调用一个值需要敲这么多代码:this.$state.count;而只需要用count。。。

猜你喜欢

转载自blog.csdn.net/wenmin1987/article/details/81980360