import axios from "axios";
// const baseURL = "http://1shoudan.com";
// const baseURL = "https://d.matripe.com.cn";
// const baseURL = "http://bl7.matripe.com.cn:8001";
// const baseURL = "http://nb.renminshitang.com.cn";
// const baseURL = "http://localhost:8001";

axios.defaults.withCredentials = true; //添加这行代码

const service = axios.create({
  baseURL: "/api_prod", // url = base url + request url
  // baseURL: baseURL, // baseURL: "/api", // url = base url + request url // url = base url + request url
  withCredentials: true, // send cookies when cross-domain requests
  timeout: 10000, // request timeout
  crossDomain: true,
});
export default service;
