From bf8e6fe928946e478948e0f55d952d2d55846e9f Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 4 Sep 2023 18:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=99=E6=B1=9F=E4=B8=87=E9=87=8Csocket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/header/index.vue | 2 +- src/setting.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 0c47853..582737e 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -153,7 +153,7 @@ export default { }, initSocket ({ id, account }) { // 实例化socket - this.socket = new WebSocket(`${Setting.isTest ? 'ws' : 'wss'}://${Setting.isDev ? '192.168.31.51:9100' : location.host}/nakadai/websocket/${id}/${account}`) + this.socket = new WebSocket(`${Setting.isTest ? 'ws' : 'wss'}://www.occupationlab.com/nakadai/websocket/${id}/${account}`) // this.socket = new WebSocket(`ws://121.37.12.51:9100/nakadai/websocket/${id}/${account}`) // 监听socket连接 this.socket.onopen = this.open; diff --git a/src/setting.js b/src/setting.js index 1af814e..1f5cb2c 100644 --- a/src/setting.js +++ b/src/setting.js @@ -27,7 +27,7 @@ if (isPro) { host = "http://121.37.12.51/"; // 中台测试服 // host = 'https://www.occupationlab.com/' // 正式服 // host = "http://192.168.31.217:9000/"; // 榕 - host = 'http://192.168.31.51:9000/'; // 赓 + // host = 'http://192.168.31.51:9000/'; // 赓 } const Setting = {