Asynchronous function problem in vue project?

this.$nextTick((=>{}))async await.then
Aug.19,2021

this.$nextTick(async () => {
    await fun()
})

you can try,

this.$nextTick( async () => {
   const res = await this.api(...);
   console.log(res);  
})
Menu