src/common/untils/request.js
@@ -67,10 +67,10 @@
    } else if([2012,2013,2014,2015].includes(res.data.code)){
      if (isDev){
        alert("JWT失效,即将跳转至登录页..")
        window.location = getApsPage()+'/login'
        window.location ='http://'+ getApsPage()+'/login'
      }else {
        //   JWT鉴权失效 跳转到登录页
        window.location = getApsPage()+'/login'
        window.location ='http://'+ getApsPage()+'/login'
      }
      // Message({
      //   message: res.data.msg,
@@ -80,10 +80,10 @@
      return Promise.reject(res.data)
    }else if([2036].includes(res.data.code)){
      if (isDev){
        window.location = getApsPage()+'/commonWeb?resetPwd=true'
        window.location ='http://'+ getApsPage()+'/commonWeb?resetPwd=true'
      }else {
        //   JWT鉴权失效 跳转到登录页
        window.location = getApsPage()+'/commonWeb?resetPwd=true'
        window.location ='http://'+ getApsPage()+'/commonWeb?resetPwd=true'
      }
      return Promise.reject(res.data)
@@ -96,10 +96,10 @@
    if(error.response.status === 401){
      if (isDev){
        alert("JWT失效,即将跳转至登录页..")
        window.location = getApsPage()+'/login'
        window.location ='http://'+ getApsPage()+'/login'
      }else {
        //   JWT鉴权失效 跳转到登录页
        window.location = getApsPage()+'/login'
        window.location ='http://'+ getApsPage()+'/login'
      }
    }
    let { message } = error