Advertisement
Guest User

Universal mutation

a guest
May 27th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mutations: {
  2.   /**
  3.    * @param {Object} payload
  4.    * @param {string} payload.key
  5.    * @param {string} payload.value
  6.    */
  7.   changeValue(state, { key, value }) {
  8.     state[key] = value
  9.   }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement