智慧农业后台管理页面
guoshilong
2022-09-27 afa8ee521affdce4f4cac9ba32ede9d22b76a13e
src/router/axios.js
@@ -68,8 +68,7 @@
  if (statusWhiteList.includes(status)) return Promise.reject(res);
  //如果是401则跳转到登录页面
  if (status === 401) store.dispatch('FedLogOut').then(() => 
    // router.push({path: '/login'})
    window.opener.location.href = 'http://dev.jxpskj.com:8020/ncny/login.html'
    router.push({path: '/login'})
  );
  // 如果请求为非200否者默认统一处理
  if (status !== 200) {