【发布时间】:2020-09-10 07:24:34
【问题描述】:
我用 get 方法请求它。
async getPrograms() {
const response = window.axios.get('http://localhost:8000/programs')
console.log(response);
}
旋转响应如下。
这里我需要的是[[PromiseValue]]中的数据。但我不知道如何到达这里。我正在用 Vue js 编写我的代码。如何获取[PromiseValue]]中的数据?
【问题讨论】:
-
await承诺。 -
非常感谢。我看不出该怎么做。 @tkausl
标签: vue.js promise axios vue-component