|
@@ -108,7 +108,7 @@ export default {
|
|
|
if(d.plcResultDTO){
|
|
|
this.plcResultDTO=d.plcResultDTO
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
websocketOnError(e) {
|
|
|
console.log("socket错误", e);
|
|
@@ -126,8 +126,10 @@ export default {
|
|
|
},
|
|
|
websocketConnect() {
|
|
|
const wstoken = getToken();
|
|
|
+ const appWs='ws://'+window.location.hostname+'/ws'
|
|
|
this.ws = new WebSocket(
|
|
|
- process.env.VUE_APP_WS + "/" + wstoken
|
|
|
+ // process.env.VUE_APP_WS + "/" + wstoken
|
|
|
+ appWs + "/" + wstoken
|
|
|
);
|
|
|
this.ws.onopen = this.websocketOnOpen;
|
|
|
this.ws.onerror = this.websocketOnError;
|
|
@@ -182,7 +184,7 @@ export default {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|