yangfeng
2024-04-01 2aa506566031eae9a53006119db0cea8c876e6c3
src/common/untils/request.js
@@ -26,9 +26,9 @@
const getApsPage = () => {
  // 首页部署在各个环境的端口
  const loginPathMap = {
    prod: `//${window.location.hostname}:9080`,
    test: `//192.168.20.119:9080`,
    dev: `//localhost:8081`
    prod: `//${window.location.hostname}`,
    test: `//192.168.20.119:9088`,
    dev: `//localhost:8080`
  }
  return loginPathMap[environmentType()]
}
@@ -59,7 +59,6 @@
/* //返回状态判断(添加响应拦截器) */
Axios.interceptors.response.use(
  (res) => {
    console.log("99999", res)
    /* //对响应数据做些事 */
    if (res.data.code === 200) {
      return res.data ? res.data : {}