Skip to content

Commit

Permalink
intercept request 例子中, return 语句消失
Browse files Browse the repository at this point in the history
intercept request 例子中, return 语句消失
  • Loading branch information
落子无悔 authored and Gcaufy committed Jan 19, 2018
1 parent dedf0e0 commit fd749d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/md/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class App extends wepy.app {
this.intercept('request', {
config (p) {
p.timestamp = +new Date();
return p;
},
success (obj) {
console.log('request success');
Expand Down

0 comments on commit fd749d6

Please sign in to comment.