[Vuejs]-How to write async/await in return statement of vuex

0👍

You need to store the result of the await into the result variable:

const result = await $api.partners.partnersList()
commit(partnersMts.PARTNERS_LIST, result.data)

Leave a comment