The method of mutations accesses the calculation property getter internally

A calculation attribute is defined in the getters.js file

const doneTodos = ( state ) => {
  return state.todos.filter( todo => todo.done ).length
}



In the

mutations.js file, define an add method

   add( state ) {
    // console.log(state.doneTodos)
   

    state.countPP
  }
  

I want to access the calculation property doneTodos, inside the add method of mutations.
how can I call getter? inside the add method

Jan.21,2022

this.$store.commit('add', { doneTodos: this.$stroe.getter.doneTodos })  
Menu