mirror of
https://github.com/YMFE/yapi.git
synced 2024-11-27 04:40:08 +08:00
Fix wss
This commit is contained in:
parent
b7c68c77d8
commit
8fbc0ab55f
@ -70,7 +70,7 @@ class InterfaceEdit extends Component {
|
||||
let domain = location.hostname + (location.port !== "" ? ":" + location.port : "");
|
||||
let s, initData = false;
|
||||
//因后端 node 仅支持 ws, 暂不支持 wss
|
||||
let wsProtocol = location.protocol === 'https' ? 'ws' : 'ws';
|
||||
let wsProtocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
||||
|
||||
setTimeout(()=>{
|
||||
if(initData === false){
|
||||
|
Loading…
Reference in New Issue
Block a user