Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhigang.li@tendcloud.com committed Sep 28, 2018
1 parent 222242d commit cda8485
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class HttpRequest {
}
return config
}
distroy (url) {
destroy (url) {
delete this.queue[url]
if (!Object.keys(this.queue).length) {
// Spin.hide()
Expand All @@ -34,11 +34,11 @@ class HttpRequest {
})
// 响应拦截
instance.interceptors.response.use(res => {
this.distroy(url)
this.destroy(url)
const { data, status } = res
return { data, status }
}, error => {
this.distroy(url)
this.destroy(url)
return Promise.reject(error)
})
}
Expand Down

0 comments on commit cda8485

Please sign in to comment.