Skip to content

Commit

Permalink
fix: use timestamp, no longer use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkontoask committed Dec 26, 2020
1 parent 82f6000 commit 087e70c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ const http: AxiosInstance = Axios.create({
timeout: 20000
})

http.defaults.params = {}

http.interceptors.request.use(
config => {
config.params['t'] = Date.now()
return config
},
error => {
Expand Down

0 comments on commit 087e70c

Please sign in to comment.