src/common/untils/request.js
@@ -71,7 +71,7 @@ } else if([2012,2013,2014,2015].includes(res.data.code)){ if (isDev){ alert("JWT失效") window.location = getApsPage()+'/' // window.location = getApsPage()+'/' }else { // JWT鉴权失效 跳转到登录页 window.location = getApsPage()+'/login' @@ -90,7 +90,7 @@ if (error.response.status === 401){ if (isDev){ alert("JWT失效") window.location = getApsPage()+'/' // window.location = getApsPage()+'/' }else { // JWT鉴权失效 跳转到登录页 window.location = getApsPage()+'/login'