Update README.md

This commit is contained in:
Sébastien Chopin 2016-12-27 17:04:13 +01:00 committed by GitHub
parent 0e1f0af3b9
commit 5d82cf3d68

View File

@ -28,7 +28,7 @@ Example with using `async/await`:
```js
export default {
async data ({ params }) {
let { data } = axios.get(`https://my-api/posts/${params.id}`)
let { data } = await axios.get(`https://my-api/posts/${params.id}`)
return { title: data.title }
}
}