Skip to content

Commit

Permalink
fix: api error no tips
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zuo committed Mar 16, 2024
1 parent ef0d96d commit 71da2ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configList/utils/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ instance.interceptors.request.use(
},
function (error: any) {
// Do something with request error
ElMessage.error('请求异常, ' + error.message)
return Promise.reject(error);
}
);
Expand Down Expand Up @@ -62,6 +63,7 @@ instance.interceptors.response.use(
function (error) {
// Any status codes that falls outside the range of 2xx cause this function to trigger
// Do something with response error
ElMessage.error('请求异常, ' + error.message)
return Promise.reject(error);
}
);
Expand Down

0 comments on commit 71da2ce

Please sign in to comment.