Browse Source

状态码401返回Promise.reject

tags/v3.1.0
RuoYi 3 years ago
parent
commit
9920957796
  1. 1
      ruoyi-ui/src/utils/request.js

1
ruoyi-ui/src/utils/request.js

@ -66,6 +66,7 @@ service.interceptors.response.use(res => {
location.href = '/index'; location.href = '/index';
}) })
}).catch(() => {}); }).catch(() => {});
return Promise.reject('error')
} else if (code === 500) { } else if (code === 500) {
Message({ Message({
message: msg, message: msg,

Loading…
Cancel
Save