📅  最后修改于: 2022-03-11 14:59:47.437000             🧑  作者: Mango
// generally getter does not take arguments, but there is an option to use method style getters
// Example to method style getter:
new Vuex.Store({
getters: {
someMethod: (state) => (id) => {
return state.things.find(thing => thing.id === id)
}
};
}
})