How to return promise result from Vuex action instead of the promise itself?

后端 未结 0 1888
时光说笑
时光说笑 2021-01-29 23:02

I have an action in my vuex store:

export const actions = {
  myaction() {
    return \'foo\'
  }
}

Can I get the promise result (here foo<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题