[Vuejs]-Uncaught (in promise) TypeError: Cannot create property 'token' on string

1👍

I think you mixed up the order of mutation parameters a little bit. First is state, second is payload (token in your case)

SET_TOKEN(state, token) {
  state.token = token;
},

Leave a comment