Skip to content

Commit

Permalink
feat: 🎸 http add commom param uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingyun2010 committed Oct 12, 2021
1 parent dd348ed commit aaf3488
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ http.interceptors.request.use(config => {
}

config.params.requestId = Number(new Date());
config.params.uuid = uuid;

if (platform) {
config.params.h5Platform = platform;
}
Expand All @@ -117,6 +119,8 @@ http.interceptors.request.use(config => {
}

config.data.requestId = Number(new Date());
config.data.uuid = uuid;

if (platform) {
config.data.h5Platform = platform;
}
Expand Down

0 comments on commit aaf3488

Please sign in to comment.