2025-11-27 16:55:35 +08:00
|
|
|
// var ctxPath = getContextPath();
|
2025-12-05 15:39:43 +08:00
|
|
|
let contentPath="czl-web"
|
2025-11-27 16:55:35 +08:00
|
|
|
contentPath = getContextPath();
|
|
|
|
|
console.log(contentPath);
|
|
|
|
|
|
|
|
|
|
let host=window.location.host;
|
|
|
|
|
let ctxPath;
|
|
|
|
|
console.log(window.location.protocol)
|
|
|
|
|
ctxPath=window.location.protocol+"//"+host+"/czl";
|
|
|
|
|
ctxPath = window.location.protocol+"//192.168.0.38:42880/czl";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getContextPath() {
|
|
|
|
|
var pathName = document.location.pathname;
|
|
|
|
|
var index = pathName.substr(1).indexOf("/");
|
|
|
|
|
var result = pathName.substr(0, index + 1);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|