疯狂的狮子li
2021-11-17 64add90edd42956b18d47bc3a8c72244598d6dda
ruoyi-ui/src/utils/request.js
@@ -9,6 +9,8 @@
let downloadLoadingInstance;
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公共部分
@@ -57,7 +59,7 @@
        }
        ).then(() => {
          store.dispatch('LogOut').then(() => {
            location.href = '/index';
            location.href = process.env.VUE_APP_CONTEXT_PATH + "index";
          })
        }).catch(() => {});
      }