!269 code=401时request方法没有返回Promise.reject 修复

Merge pull request !269 from 严俊东/N/A
master
若依 3 years ago committed by Gitee
commit 46b43b1bd9
  1. 1
      ruoyi-ui/src/utils/request.js

@ -64,6 +64,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