Vuex the initial value of one field depends on another field, and then the interaction can change that field, so where should this field be placed?

vuex the initial value of one field depends on another field, and then the interaction can change the field, so where should the field be placed

Mar.30,2021

state.a||state.b

const count = 0;
const store = new Vuex.Store({
  state: {
    count,
    a: count, // acount
  },
  mutations: {
    increment (state) {
      state.countPP
    }
  }
})
Menu