mapState,mapGetters,mapMutations,mapActions用法 韩富旺 2023-06-29 46 阅读1分钟 1、利用mapMutations方法使用拓展运算符把mutations的方法解构在methods中,在this中也可以找到对应解构出来的方法。 2、利用mapActions方法使用拓展运算符把actions的方法解构在methods中,在this中也可以找到对应解构出来的方法。 3、利用mapState方法使用拓展运算符把list解构在计算属性中 4、mapGetters用法