From 6345303249a09a65d35de7dd5c1c262f5801647e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Wed, 29 Oct 2025 22:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96tcp=E8=BF=9E=E6=8E=A5=E7=9A=84=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.vue | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index 3abff99..525941b 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -373,21 +373,21 @@ export default { uni.$on('visitorLoginSuccess', this.handleVisitorLoginSuccess) // 页面渲染完成后自动连接两个TCP连接 - this.$nextTick(() => { - console.log('页面渲染完成,开始自动连接TCP服务器...') - // 延迟一小段时间确保页面完全加载后再连接 - setTimeout(() => { - // 连接今日市场概览TCP(channel 1) - console.log('连接今日市场概览TCP(channel 1)...') - this.connectTcp() + // this.$nextTick(() => { + // console.log('页面渲染完成,开始自动连接TCP服务器...') + // // 延迟一小段时间确保页面完全加载后再连接 + // setTimeout(() => { + // // 连接今日市场概览TCP(channel 1) + // console.log('连接今日市场概览TCP(channel 1)...') + // this.connectTcp() - // 稍微延迟后连接我的自选TCP(channel 2) - setTimeout(() => { - console.log('连接我的自选TCP(channel 2)...') - this.connectMyStocksTcp() - }, 500) - }, 1000) - }) + // // 稍微延迟后连接我的自选TCP(channel 2) + // setTimeout(() => { + // console.log('连接我的自选TCP(channel 2)...') + // this.connectMyStocksTcp() + // }, 500) + // }, 1000) + // }) }, // 页面销毁前的清理工作