I thought there was little difference between the two writing methods, but today I found out that this is not the case: this is not the case in the
project. Bug has been looking for it for a long time.
SET_ACTIVE_INDEX (state, payload) {
state.activeIndex = payload.index
}
change it to the figure below
which student will be grateful to tell me what a () {} equates to?