Skip to content

Commit 30cd221

Browse files
committed
tweak
1 parent ea83ab6 commit 30cd221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/request.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ service.interceptors.response.use(
4848
// if the custom code is not 20000, it is judged as an error.
4949
if (res.code !== 20000) {
5050
Message({
51-
message: res.message || 'error',
51+
message: res.message || 'Error',
5252
type: 'error',
5353
duration: 5 * 1000
5454
})
@@ -66,7 +66,7 @@ service.interceptors.response.use(
6666
})
6767
})
6868
}
69-
return Promise.reject(new Error(res.message || 'have been logged out'))
69+
return Promise.reject(new Error(res.message || 'Error'))
7070
} else {
7171
return res
7272
}

0 commit comments

Comments
 (0)