1、修改https下websocket建立失败的问题

This commit is contained in:
weidong 2024-01-02 19:56:53 +08:00
parent 006a23f6ed
commit edf4904972

View File

@ -120,7 +120,7 @@
console.log(curPath);
//获取主机地址之后的目录,如: /ems/Pages/Basic/Person.jsp
var pathName = window.document.location.pathname;
console.log(curPath);
console.log(pathName);
var pos = curPath.indexOf(pathName);
//获取主机地址,如: http://localhost:8080
var basePath = curPath.substring(0, pos);