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