Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
afishhhhh committed Jul 17, 2019
1 parent a80a0ad commit 4e06bf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -83,6 +83,7 @@ const request = require('weapp.request')
// 添加请求拦截器
request.interceptors.req.use(function (request) {
request.header['X-Tag'] = 'weapp.request'
// return request 可以显式地返回一个 request,如果没有 return,则默认返回当前 request
})
```
响应拦截器同理。
Expand Down

0 comments on commit 4e06bf9

Please sign in to comment.