|
@@ -146,9 +146,13 @@ const errorDataCallback = response => {
|
|
|
|
|
|
const error = response.data;
|
|
|
let message = error.message || error.error || "请求错误";
|
|
|
- const unauthCodes = [401, 403];
|
|
|
+ const unauthStatus = [401, 403];
|
|
|
+ const unauthDataCodes = [401001];
|
|
|
|
|
|
- if (unauthCodes.includes(response.status)) {
|
|
|
+ if (
|
|
|
+ unauthStatus.includes(response.status) &&
|
|
|
+ !unauthDataCodes.includes(error.code)
|
|
|
+ ) {
|
|
|
if (unauthMsgBoxIsShow) return error;
|
|
|
|
|
|
const exposeMsgs = ["系统授权信息已过期,请联系系统管理员激活!"];
|
|
@@ -158,7 +162,6 @@ const errorDataCallback = response => {
|
|
|
: "身份验证失效,请重新登录";
|
|
|
MessageBox.confirm(message, "重新登陆?", {
|
|
|
type: "warning",
|
|
|
-
|
|
|
closeOnClickModal: false,
|
|
|
closeOnPressEscape: false,
|
|
|
showClose: false,
|