how to get root getter vuex 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
}
}