|
@@ -533,7 +533,7 @@ export default {
|
|
// websocket启动
|
|
// websocket启动
|
|
createWebSocket1() {
|
|
createWebSocket1() {
|
|
// let webSocketLink = `ws://192.168.1.102:6014/websocket/${this.$store.state.user.userId}_${this.$store.state.user.authToken}`;
|
|
// let webSocketLink = `ws://192.168.1.102:6014/websocket/${this.$store.state.user.userId}_${this.$store.state.user.authToken}`;
|
|
- let webSocketLink1 = `ws://10.220.1.11:6015/websocket/nxf_${this.$store.state.user.authToken}`; // webSocket地址
|
|
|
|
|
|
+ let webSocketLink1 = `${process.env.VUE_APP_WS_URL}/websocket/nxf_${this.$store.state.user.authToken}`; // webSocket地址
|
|
try {
|
|
try {
|
|
if ("WebSocket" in window) {
|
|
if ("WebSocket" in window) {
|
|
this.socketObj1 = new WebSocket(webSocketLink1);
|
|
this.socketObj1 = new WebSocket(webSocketLink1);
|