text: import axios from 'axios';
  
  import nprogress from 'nprogress'
  /* 引用进度条和样式  start 开始 done 结束*/
  import 'nprogress/nprogress.css'
  
  if (process.env.NODE_ENV === "'dev'"){
      base_url = '/api'
  } else {
     base_url = 'http://52.14.102.178:8071/spring/user`'
  }
  
  export const requests = axios.create({
    
      /* baseURL: "/api", */
      timeout: 5000,
  })
  
  //axios设置请求拦截器
  requests.interceptors.request.use(config => {
    
      return config
  }, err => {
      console.log(err)
  })
  
  //axios设置响应拦截器
  requests.interceptors.response.use(response => {
      nprogress.done()
      return response.data //拦截处理响应结果，直接返回需要的数据
  }, err => {
      console.log(err)
  })