From 1c26940540b4074f86feaecd9cc27d6d4ef4d3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Wed, 29 Oct 2025 11:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E7=9A=84tcp=E8=BF=9E=E6=8E=A5=EF=BC=88=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=97=B6=E5=90=AF=E7=94=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.vue | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index 92f54cf..92c129c 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -193,7 +193,7 @@ import MarketOverview from '../../components/MarketOverview.vue' import DeepMate from '../../components/DeepMate.vue' import tcpConnection from '../../api/tcpConnection.js' import th from '../../static/language/th' - +import MySelectionsAPI from '../../api/home/mySelections.js' export default { components: { footerBar, @@ -338,21 +338,21 @@ export default { this.initTcpListeners() // 页面渲染完成后自动连接两个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) + // }) }, // 页面销毁前的清理工作