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 })  
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b48d8e-2c94d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b48d8e-2c94d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?