Commit 1be08101 authored by 耿迪迪's avatar 耿迪迪

websocket 地址修改

parent b3bd2777
......@@ -482,7 +482,7 @@ export default {
init() {
console.log("socket执行");
this.ws = new WebSocket(
"ws://36.138.180.129:8901/gassafety/websocketServer"
"ws://"+ window.location.host + process.env.VUE_APP_BASE_API+ "/websocketServer"
);
this.ws.onopen = (evt) => {
console.log("WebSockets开启");
......
......@@ -475,7 +475,7 @@ export default {
init() {
console.log("socket执行");
this.ws = new WebSocket(
"ws://36.138.180.129:8901/gassafety/websocketServer"
"ws://"+ window.location.host + process.env.VUE_APP_BASE_API+ "/websocketServer"
);
this.ws.onopen = (evt) => {
console.log("WebSockets开启");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment