I would like to ask you a question about a getters of vuex:
can getters of modules A call state or getters of modulesB
my question scenario is probably: use a key of modulesB to filter an array of modulesA:
The code formodules An is roughly as follows:
const state = {
unfilterList: []
}
const getters = {
state => {
const key // keymodulesBstategetters
return state.unfilterList.filter(key)
}
}
but I don"t know how to get the key here.
or is there a more appropriate logic to implement this requirement?
Thank you very much!
another: actions already knows
(https://codeshelper.com/a/11...)