import{a as s}from"./axios-4a70c6fc.js";import{E as t}from"./index-ad591d72.js";const o=s.create({baseURL:"http://localhost:8809",timeout:6e4});o.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)});o.interceptors.response.use(function(e){if(e.status==200)return e.data;console.log("返回错误")},function(e){return console.log(e),e.code=="ERR_NETWORK"?t({message:"Do not disable the back-end network service",grouping:!0,type:"error"}):e.code=="ERR_BAD_RESPONSE"&&t({message:"Do not disable the back-end network service",grouping:!0,type:"error"}),Promise.reject(e)});export{o as s};
