0👍
Take a look here:
matchesList: state => state.matchesList,
matchesListKD: state => {
let matchesList = []
for (let g of state.matchesList) matchesList.push(g.kdList)
return matchesList
}
You are using state.matchesList
as the state, but matchesList
is getters
, not a state
.
If you want to use state.matchesList
as a state
then move it to the state
object, but then you can’t use it as this.$store.getters.user.matchesList
.
- [Vuejs]-Npm install package throws error The operation was rejected by your operating system
- [Vuejs]-Why use AWS AppSync client on top of vue-apollo?
Source:stackexchange.com