From 31f08375ddf2b7d0937fd222f9df4d2a6b3d9115 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期日, 06 十月 2024 23:13:16 +0800
Subject: [PATCH] 1
---
src/utils/tool.js | 7 +++++--
src/views/mdc/station-live.vue | 3 ++-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/utils/tool.js b/src/utils/tool.js
index 85cda09..596624d 100644
--- a/src/utils/tool.js
+++ b/src/utils/tool.js
@@ -2,7 +2,7 @@
* @Descripttion: 宸ュ叿闆�
* @version: 1.2
* @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-06-17 18:21:44
+ * @LastEditTime: 2024-10-06 23:09:59
*/
import CryptoJS from 'crypto-js';
@@ -15,8 +15,11 @@
var hostname = window.location.hostname; // 鑾峰彇涓绘満鍚�
var port = window.location.port; // 鑾峰彇绔彛鍙�
var pathname = window.location.pathname; // 鑾峰彇璺緞鍚�
+
+console.log(hostname,port,pathname)
if (process.env.NODE_ENV=='development') {
- var path = "120.46.212.231:84";
+ //var path = "120.46.212.231:85";
+ var path = hostname+":"+port;
} else {
var path = hostname+":"+port;
}
diff --git a/src/views/mdc/station-live.vue b/src/views/mdc/station-live.vue
index 1744fc6..c46d397 100644
--- a/src/views/mdc/station-live.vue
+++ b/src/views/mdc/station-live.vue
@@ -2,7 +2,7 @@
* @Author: lzhe lzhe@example.com
* @Date: 2024-03-26 10:28:33
* @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-10-06 22:46:49
+ * @LastEditTime: 2024-10-06 23:03:58
* @FilePath: /smart-web/src/views/master/person/main/index.vue
* @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -657,6 +657,7 @@
if(this.$TOOL.socket.websocket == null) { //娌℃湁寤虹珛鍏堝缓绔�
this.$TOOL.socket.connectToWebSocket(this.$TOOL.cookie.get("TOKEN"));
}
+ console.log(obj,222333)
this.$TOOL.socket.sendDataToWebSocket(obj); //鍙戦��
this.$TOOL.socket.websocket.onmessage = function(event) {
var JSONData = JSON.parse(res.data.dpConfig);
--
Gitblit v1.9.3