/ / mutation-types.js
export const SOME_MUTATION = "SOME_MUTATION"
/ / store.js
import Vuex from" vuex"
import {SOME_MUTATION} from". / mutation-types"
const store = new Vuex.Store ({
state: {.},
mutations: {
[SOME_MUTATION] (state) {
// mutate state
}
}
})
store mean and how do you understand it? Why add square brackets?