- 博客(2)
- 收藏
- 关注
转载 vuex getter传参方法
getters: { getProductByid: (state) => (id) => { return state.productList.find(item => item.id === id); }}this.$store.getters['yournamespace/getProductByid'](id);this.$store.getters.getProductByid(id);
2020-04-03 16:45:21 2981 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人