1、修改https下websocket建立失败的问题
This commit is contained in:
parent
006a23f6ed
commit
edf4904972
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user