import{f as s,g as r}from"./index.fa63d907.js";const l=[{id:"baseMap",name:"\u5728\u7EBF\u5E95\u56FE",type:"single",select:"",show:!0,image:"/images/echartsimg/mapbottom.png",children:[{id:1,parentId:"baseMap",proxiedUrl:"//dev.virtualearth.net",name:"\u5FC5\u5E94\u5730\u56FE",type:"BINGMAP",state:1,image:"/images/baseLayer/Bing.png"},{id:3,parentId:"baseMap",proxiedUrl:"https://a.tile.openstreetmap.org/",name:"OSM\u8857\u9053\u5730\u56FE",type:"OSM",state:0,image:"/images/baseLayer/OSM.png"}]},{id:"webServe",name:"\u670D\u52A1",type:"many",select:[],show:!0,image:"/images/echartsimg/maplayersactive.png",children:[]}],E="http://223.99.16.253:8090/iserver/services/map-mvt-FeiXianZhenJie12feixianZJ/restjsr/v1/vectortile/maps/\u8D39\u53BF\u9547\u754C_1-2%40feixianZJ",d=[0,0],g="b6585bc41ee16251dbe6b1af64f375d9",A="AmTLTFB9yDa02XCXQcXPPeWFuTiRQpezXihtyD_-67kH4RgYAOv1QSejOjTiGsYG",o="",i="http://223.99.16.253:8098",n="http://192.168.10.126:9090",c="http://223.99.16.253:8099",p=!1,h="http://221.2.83.254:8001",m=i,S=p?n:c,M=o,a=s.create({baseURL:m+"/api",timeout:5e4,withCredentials:!1});a.interceptors.request.use(e=>(e.headers.Authorization="Bearer "+localStorage.getItem("Token"),e.headers["Content-Type"]="application/json;charset=UTF-8",e.headers["X-Token"]=localStorage.getItem("Token"),e),e=>{console.log(e),Promise.reject(e)});a.interceptors.response.use(e=>{const t=e.data;return t.code!==200?(t.code===50008||t.code===50012||t.code===50014||t.code==401,Promise.reject("error")):e.data},e=>(console.log(e),String(e)==="Error: Request failed with status code 401"&&r.replace({path:"/login"}),Promise.reject(e)));export{S as B,h as C,d as D,l as M,M as S,g as T,E as Z,m as a,A as b,a as s};
