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) + // }) }, // 页面销毁前的清理工作