Request API in the actions of vuex in vue, which is submitted to mutations to report an error.

problem description

request API in actions of vuex in vue, which is submitted to mutations for error

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)
actions.js

getCertificationStatus(context, vm){
    return new Promise((resolve, reject) => {
          axios.post("/realNameUtils/gotoStatusPage")
          .then((res)=>{
                context.commit("certificationStatus",res.data.content)
 
            })
        })
      }
  }

mutations.js

var state = {
    certificationStatus: null
}
const mutations = {
    getCertificationStatus(state,data){
        state.certificationStatus = data
    }}
export default{
    state,
    mutations
}

what result do you expect? What is the error message actually seen?

error

Mar.30,2021

var state = {
    certificationStatus: null
}
const mutations = {
    certificationStatus(state,data){
        state.certificationStatus = data
    }}
export default{
    state,
    mutations
}

try it like this.


by the way, actions submitted the method name in mutations, which I thought was the status name in mutations. I'm confused. Thank you


context.commit ('getCertificationStatus',res.data.content)

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-1eadae9-2172.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-1eadae9-2172.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?