I've been encountering an issue where the values I'm trying to pass to my dispatch function are not being recognized and showing up as undefined. It's puzzling because all the values exist and display properly when logged in the component.
Here's the dispatch call in my component:
methods: {
buscar(){
const formData = {
user: this.user,
password: this.password,
profile: this.profile
};
console.log('fomrdata: ',formData)
this.$store.dispatch('login', formData)
}
},
And here's the method in my store:
login(formData) {
console.log(formData)
},