疯狂的狮子li
2022-02-10 1273421498f5e2afdf5bfef50b9358c45458fefd
ruoyi-ui/src/utils/request.js
@@ -12,6 +12,8 @@
let isReloginShow;
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 对应国际化资源文件后缀
axios.defaults.headers['Content-Language'] = 'zh_CN'
// 创建axios实例
const service = axios.create({
  // axios中请求配置有baseURL选项,表示请求URL公共部分
@@ -88,7 +90,7 @@
        store.dispatch('LogOut').then(() => {
          // 如果是登录页面不需要重新加载
          if (window.location.hash.indexOf("#/login") != 0) {
            location.href = '/index';
            location.href = process.env.VUE_APP_CONTEXT_PATH + "index";
          }
        })
      }).catch(() => {