Browse Source

wss地址

wangqin
lau572 9 months ago
parent
commit
103535e70e
  1. 2
      ruoyi-ui/src/views/websocket.vue

2
ruoyi-ui/src/views/websocket.vue

@ -31,7 +31,7 @@ export default {
// websocket
this.socket.initialize({
// url: 'ws://' + location.hostname + ':' + port + path,
url: 'wss://' + location.hostname + ':' + window.location.port || 80 + '/ws',
url: 'wss://' + location.hostname + ':' + window.location.port + '/ws' || 80 + '/ws',
// url: "ws://10.7.179.15" + ":" + port + path,
// url: "ws://10.168.64.171" + ":" + port + path,
// url: 'ws://10.168.78.127'+ ':' + port + path,

Loading…
Cancel
Save