From 225d11e2ddaa55d1d482201cb4d89c9486cdba69 Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期五, 20 六月 2025 12:27:52 +0800 Subject: [PATCH] 更新代码 --- 代码管理/WMS/WIDESEA_WMSClient/src/views/Index.vue | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/Index.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/Index.vue" index 519f89b..a882a94 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/Index.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/Index.vue" @@ -324,24 +324,24 @@ }); }; - const createSocket = (url) => { - // 鍒涘缓WebSocket杩炴帴 - //"ws://127.0.0.1:9295/admin" - client = new WebSocket(url); + // const createSocket = (url) => { + // // 鍒涘缓WebSocket杩炴帴 + // //"ws://127.0.0.1:9295/admin" + // client = new WebSocket(url); - client.onopen = function () { - client.onmessage = handleMessage; - store.commit("setWebsocket", client); - console.log("WebSocket 杩炴帴鎴愬姛"); - }; + // client.onopen = function () { + // client.onmessage = handleMessage; + // store.commit("setWebsocket", client); + // console.log("WebSocket 杩炴帴鎴愬姛"); + // }; - client.onclose = function () { - console.log("WebSocket 杩炴帴鍏抽棴"); - setTimeout(createSocket, 10000); - }; - //鐩戝惉socket閿欒淇℃伅 - client.onerror = function () {}; - }; + // client.onclose = function () { + // console.log("WebSocket 杩炴帴鍏抽棴"); + // setTimeout(createSocket, 10000); + // }; + // //鐩戝惉socket閿欒淇℃伅 + // client.onerror = function () {}; + // }; const changeTheme = (name) => { if (theme.value != name) { @@ -606,7 +606,7 @@ } } - createSocket("ws://127.0.0.1:9296/" + _userInfo.userName); + // createSocket("ws://127.0.0.1:9296/" + _userInfo.userName); Object.assign(_config.$tabs, { open: open, close: close }); -- Gitblit v1.9.3