//本地路径 let PATH_URL="http://127.0.0.1:2024/line" let FILE_URL="http://127.0.0.1:1909/file" let IMG_URL="http://127.0.0.1:1909/file/" //测试环境系统请求路径 // let PATH_URL="http://192.168.0.14:2024/line" // let FILE_URL="http://192.168.0.14:1909/file" // let IMG_URL="http://192.168.0.14:1909/file/" //正式环境 gateway // let PATH_URL="http://112.29.103.165:1616/line" // let FILE_URL="http://112.29.103.165:1616/file" // let IMG_URL="http://112.29.103.165:1616/file/" // let PATH_URL=getContextPath(); //登录页面路径 let LOGIN_PATH="http://127.0.0.1:8849/ah-bns-web/html/test/test.html"; //加解密开关 let jm_switch=false; let token=localStorage.getItem("token") console.log(window.location.href) console.log(token) function getContextPath() { var pathName = document.location.pathname; var index = pathName.substr(1).indexOf("/"); var result = pathName.substr(0, index + 1); return result; }