Browse Source

更换websocket地址

xiongxing 4 weeks ago
parent
commit
085bd36e44
2 changed files with 10 additions and 8 deletions
  1. 5 7
      .env
  2. 5 1
      src/layout/index.vue

+ 5 - 7
.env

@@ -5,10 +5,8 @@
 #VITE_API_URL='https://home.ynims.com/dataScreen/dataBigScreen/'
 VITE_API_URL='http://47.107.245.0:48080/'
 # VITE_API_APP_URL='http://47.112.126.153:7060/'
-# VITE_API_WSS_URL='ws://47.112.126.153:7061/ws/monitor/'
-VITE_API_WSS_URL='wss://home.ynims.com:7060/ws/monitor/'
-VITE_API_WSS_URL_org='wss://home.ynims.com:7060/ws/monitor-org/'
-VITE_API_APP_URL='https://home.ynims.com:6060'
-
-
-
+# VITE_API_WSS_URL='ws://192.168.101.174:3443/ws/instcare-bigscreen/'
+# VITE_API_WSS_URL_org='ws://192.168.101.174:3443/ws/instcare-web-orgadmin/'
+VITE_API_WSS_URL='wss://home.ynims.com:7060/ws/instcare-bigscreen/'
+VITE_API_WSS_URL_org='wss://home.ynims.com:7060/ws/instcare-web-orgadmin/'
+VITE_API_APP_URL='https://home.ynims.com:6060'

+ 5 - 1
src/layout/index.vue

@@ -349,9 +349,13 @@
 		startHeartbeat();
 		// 发送身份验证消息
 		const isGrid = localStorage.getItem('isGrid');
+		const objApiMonitor = {
+			0: 'instcare-bigscreen',
+			1: 'instcare-web-orgadmin'
+		};
 		let postData = {
 			type: 'AUTH',
-			clientType: 'monitor',
+			clientType: objApiMonitor[isGrid],
 			clientId: generateClientId(),
 			timestamp: Date.now()
 		};