J
J
jekanok2020-07-17 18:44:29
Vue.js
jekanok, 2020-07-17 18:44:29

How to get data not from index file in vuex?

The problem is that I use vuex, and I have an order file - it's not the main one, and through this I can't get data from getters in vuex, they are entered in state, but I can't get it. can you tell me what is the problem?Jqapgss.png

computed: {
    giveUser() {
      return this.$store.getters.getuser
    }
  },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
segio_tt, 2020-07-17
@jekanok

getters : {
users ( state ) {
return state.users
}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question