|
@@ -2,8 +2,8 @@ import axios from "axios";
|
|
// import { gettoken } from "../services/token";
|
|
// import { gettoken } from "../services/token";
|
|
// axios.defaults.withCredentials=true;
|
|
// axios.defaults.withCredentials=true;
|
|
const instance = axios.create({
|
|
const instance = axios.create({
|
|
- baseURL: 'http://192.168.2.164:8899', //请求的基础地址
|
|
|
|
- // baseURL: window.location.origin + "/backend",
|
|
|
|
|
|
+ // baseURL: 'http://192.168.2.164:8899', //请求的基础地址
|
|
|
|
+ baseURL: window.location.origin + "/backend",
|
|
// baseURL: 'https://scrm.zzliaoyuan.com/backend', //请求的基础地址
|
|
// baseURL: 'https://scrm.zzliaoyuan.com/backend', //请求的基础地址
|
|
timeout: 60000, //请求超时的时间
|
|
timeout: 60000, //请求超时的时间
|
|
});
|
|
});
|