yn_hxy_web/hxy-web/js/public/public.js

26 lines
767 B
JavaScript
Raw Normal View History

2024-07-26 18:15:22 +08:00
//系统请求路径
2024-09-11 09:03:03 +08:00
let PATH_URL="http://127.0.0.1:2024/line"
2024-08-24 21:00:12 +08:00
// let PATH_URL="http://192.168.0.14:2024/line"
2024-08-22 18:00:55 +08:00
let FILE_URL="http://127.0.0.1:1909/file"
2024-08-24 21:00:12 +08:00
// let FILE_URL="http://192.168.0.14:1909/file"
2024-08-20 10:42:21 +08:00
//系统请求路径
let IMG_URL="http://127.0.0.1:1911/bmw/"
2024-08-24 21:00:12 +08:00
// let IMG_URL="http://192.168.0.14:1911/bmw/"s
2024-08-16 09:20:11 +08:00
// let PATH_URL=getContextPath();
2024-07-26 18:15:22 +08:00
//登录页面路径
let LOGIN_PATH="http://127.0.0.1:8849/ah-bns-web/html/test/test.html";
//加解密开关
let jm_switch=false;
2024-08-20 10:42:21 +08:00
let token=localStorage.getItem("token")
console.log(window.location.href)
2024-07-26 18:15:22 +08:00
console.log(token)
2024-08-16 09:20:11 +08:00
function getContextPath() {
var pathName = document.location.pathname;
var index = pathName.substr(1).indexOf("/");
var result = pathName.substr(0, index + 1);
return result;
}