mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 18:40:37 +08:00
修改服务异常判断逻辑
This commit is contained in:
1 parent
66df445bd5
commit
7edd91f923
4 files changed
+3352
-1941
No files matched your search
@@ -56,7 +56,6 @@ _request.interceptors.request.use((url, options) => {
|
||||
_request.interceptors.response.use(async (response) => {
|
||||
const responseStatus = response.status;
|
||||
if ([502, 504].includes(responseStatus)) {
|
||||
message.error('服务异常,请稍后刷新!');
|
||||
history.push('/error');
|
||||
} else if (responseStatus === 401) {
|
||||
if (history.location.pathname !== '/login') {
|
||||
|
||||
Reference in new issue
Block a user