[Vuejs]-How to put in Axios request 2 params

1👍

You should pass context and payload to Vuex action. So I’m guessing you do not have access to form data inside your action, right?

Try this: async updateUserInfo(ctx, { id, data })

And then in the vue component: this.updateUserInfo({ id, data: this.formData });

Leave a comment