vuex access root state getters in getters code example
Example: vuex getter root state
const getters = {
getParams: (state, getters, rootState) => {
return rootState.route.params
}
}
const getters = {
getParams: (state, getters, rootState) => {
return rootState.route.params
}
}