added responseInterceptor example

master
James Lee 2017-09-06 23:40:01 -07:00 committed by GitHub
parent 148f8b8e73
commit 9dd5de3329
1 changed files with 8 additions and 1 deletions

View File

@ -147,6 +147,13 @@ requestInterceptor: (config, { store }) => {
### `responseInterceptor`
- Default: `null`
```js
responseInterceptor: (response, ctx) => {
return response
}
```
Function for manipulating axios responses.
### `init`
@ -291,4 +298,4 @@ Details
[MIT License](./LICENSE)
Copyright (c) 2017 Nuxt Community
Copyright (c) 2017 Nuxt Community