We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea83ab6 commit 30cd221Copy full SHA for 30cd221
src/utils/request.js
@@ -48,7 +48,7 @@ service.interceptors.response.use(
48
// if the custom code is not 20000, it is judged as an error.
49
if (res.code !== 20000) {
50
Message({
51
- message: res.message || 'error',
+ message: res.message || 'Error',
52
type: 'error',
53
duration: 5 * 1000
54
})
@@ -66,7 +66,7 @@ service.interceptors.response.use(
66
67
68
}
69
- return Promise.reject(new Error(res.message || 'have been logged out'))
+ return Promise.reject(new Error(res.message || 'Error'))
70
} else {
71
return res
72
0 commit comments