yangfeng
2024-03-29 00d1a771adb136642f67ce281c09d7c32cb1f697
src/common/untils/request.js
@@ -26,8 +26,8 @@
const getApsPage = () => {
  // 首页部署在各个环境的端口
  const loginPathMap = {
    prod: `//${window.location.hostname}:9080`,
    test: `//192.168.20.119:9080`,
    prod: `//${window.location.hostname}:9088`,
    test: `//192.168.20.119:9088`,
    dev: `//localhost:8081`
  }
  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 : {}