Answer the question
In order to leave comments, you need to log in
Why is the getter not working?
In general, the situation is the following.
When I start the project, an error occurs in the function
return this.getTransportFields.reduce((data, f) => ({ ...data, [f.name]: f.value }), {})
console.log(this.getTransportFields) // undefined
getTransportFields() {
return this.$store.getters['getTransportFields']
},
getTransportFields(state) {
return state.FIELDS.formFieldsMap
},
state.FIELDS.formFieldsMap
data is
Answer the question
In order to leave comments, you need to log in
The state.FIELDS.formFieldsMap
data is
getters: {
transportFields: state => state.FIELDS.formFieldsMap || [],
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question