|
@@ -149,6 +149,12 @@ const errorDataCallback = response => {
|
|
|
const unauthCodes = [401, 403];
|
|
|
|
|
|
if (unauthCodes.includes(response.status)) {
|
|
|
+ const returnUrl = Vue.ls.get("user", { returnUrl: "" }).returnUrl;
|
|
|
+ if (returnUrl) {
|
|
|
+ this.$message.error("身份验证失效!");
|
|
|
+ window.location.href = returnUrl;
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (unauthMsgBoxIsShow) return error;
|
|
|
unauthMsgBoxIsShow = true;
|
|
|
message = "身份验证失效,请重新登录";
|