2025-05-20 13:54:27 +08:00
|
|
|
|
// var ctxPath = getContextPath();
|
2025-10-28 14:37:54 +08:00
|
|
|
|
let contentPath="/czl-web"
|
2025-05-20 16:19:38 +08:00
|
|
|
|
var pagesPath = getContextPath();
|
2025-10-28 14:37:54 +08:00
|
|
|
|
|
2025-10-28 14:56:50 +08:00
|
|
|
|
<<<<<<< .mine
|
2025-10-28 14:37:54 +08:00
|
|
|
|
let host=window.location.host;
|
|
|
|
|
|
let ctxPath;
|
|
|
|
|
|
console.log(window.location.protocol)
|
|
|
|
|
|
ctxPath=window.location.protocol+"//"+host+"/czl";
|
2025-10-28 14:56:50 +08:00
|
|
|
|
//<2F><><EFBFBD><EFBFBD>
|
2025-10-28 14:37:54 +08:00
|
|
|
|
ctxPath = window.location.protocol+"//192.168.0.14:42880/czl";
|
2025-05-20 13:54:27 +08:00
|
|
|
|
|
|
|
|
|
|
// function getContextPath() {
|
|
|
|
|
|
// var pathName = document.location.pathname;
|
|
|
|
|
|
// var index = pathName.substr(1).indexOf("/");
|
|
|
|
|
|
// var result = pathName.substr(0, index + 1);
|
|
|
|
|
|
// return result;
|
|
|
|
|
|
// }
|
2025-10-28 14:56:50 +08:00
|
|
|
|
=======
|
2025-05-20 16:19:38 +08:00
|
|
|
|
function getContextPath() {
|
|
|
|
|
|
var pathName = document.location.pathname;
|
|
|
|
|
|
var index = pathName.substr(1).indexOf("/");
|
|
|
|
|
|
var result = pathName.substr(0, index + 1);
|
|
|
|
|
|
return result;
|
|
|
|
|
|
}
|
2025-10-28 14:56:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>>>>>>> .theirs
|