[Vuejs]-Getters from vuex story doesn't show data

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 .

Leave a comment