Vuex uses async / await Times error

set actions, in the newly created new Vuex.Store and set the async / await, code as follows:

        async actthree:(context)=>{
            context.commit("alertthree",await alertthree())
        },
        async actfour:(context)=>{
            await dispatch("actthree")
            commit("alertfour",await alertfour())
        }
    

but an error is reported in the console:

clipboard.png

how can I modify it?

Mar.11,2021

syntactically there is

var a = {
    myAsyncFunction: async() => {
    }
}
//
var a = {
    async myAsyncFunction() {}
}

does not have async fnName: () = > {}


async after the colon


there is no such way of writing

1:
async test(){
  console.log(1)
}
2:
test2:async ()=>{
  console.log(2)
}
Menu