Skip to content

Commit

Permalink
fix: 修复生产环境部分错误无提示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Aug 31, 2023
1 parent 4639d13 commit e18692f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion continew-admin-ui/src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ axios.interceptors.response.use(
if (res.success) {
return res;
}
return Promise.reject(new Error(res.msg || '未知错误'));
messageErrorWrapper({
content: res.msg || '网络错误',
duration: 5 * 1000,
});
return Promise.reject(new Error(res.msg || '网络错误'));
},
(error) => {
const { response } = error;
Expand Down

0 comments on commit e18692f

Please sign in to comment.