text: import axios from 'axios';
  
  const service = axios.create({
      // process.env.NODE_ENV === 'development' 来判断是否开发环境
      // easy-mock服务挂了，暂时不使用了
      // baseURL: 'http://192.168.43.88:8088',
      baseURL: 'http://172.20.10.2:8088',
      // baseURL: 'http://10.3.59.11:8080',
      timeout: 5000
  });
  
  service.interceptors.request.use(
      config => {
          return config;
      },
      error => {
          console.log(error);
          return Promise.reject();
      }
  );
  
  service.interceptors.response.use(
      response => {
          if (response.status === 200) {
              return response.data;
          } else {
              Promise.reject();
          }
      },
      error => {
          console.log(error);
          return Promise.reject();
      }
  );
  
  export default service;
  