charles
2024-07-18 1a0e437bd073d428e276a804c6846e409d92a99e
src/common/untils/request.js
@@ -1,6 +1,6 @@
import axios from "axios"
import { Message } from "element-ui"
import {getApsPage} from './index.js';
// import router from '@/router'
// 开发环境下将自己的token复制到这里, 也可以在浏览器中手动添加token到cookie中,cookie中的token优先
@@ -27,7 +27,7 @@
  withCredentials: true // 是否允许带cookie这些
})
const getApsPage = () => {
/*const getApsPage = () => {
    // 首页部署在各个环境的端口
    const loginPathMap = {
        prod:`//${window.location.hostname}:9080`,
@@ -37,7 +37,7 @@
    }
    return loginPathMap[environmentType()]
}
}*/
/* //POST传参序列化(添加请求拦截器) */
Axios.interceptors.request.use(