I have the following Vuex structure.
(store/actions.js store/mutations.js, ...)
And I have seen two cases when writing a function in a mutation
case 1
import {
  MUTATION_ONE
  MUTATION_TWO
  ...
} from './mutation_group';
export default {
  [SOME_MUTATION](parameter) { .. }
};
case 2
import {
  MUTATION_ONE
  MUTATION_TWO
  ...
} from './mutation_group';
export default {
  SOME_MUTATION: function (parameter) { .. }
};
What is the difference between simply using function declarations and using variables as key values via computed property name?
 
     
    