3
我在我的组件中使用vuex
和mapGetters
帮助程序。我得到了这个功能:将params传递给mapGetters
getProductGroup(productIndex) {
return this.$store.getters['products/findProductGroup'](productIndex)
}
是否有可能将这种方式移动到mapGetters
?问题是,我也传递参数的功能,所以如果你的吸气发生在这样的参数,我无法找到一个方法来把这个mapGetters