Browse Source

注释掉首页的tcp连接(需要时启用)

zhaowenkang/feature-20251028181547-行情页面
宋杰 4 weeks ago
parent
commit
1c26940540
  1. 32
      pages/home/home.vue

32
pages/home/home.vue

@ -193,7 +193,7 @@ import MarketOverview from '../../components/MarketOverview.vue'
import DeepMate from '../../components/DeepMate.vue' import DeepMate from '../../components/DeepMate.vue'
import tcpConnection from '../../api/tcpConnection.js' import tcpConnection from '../../api/tcpConnection.js'
import th from '../../static/language/th' import th from '../../static/language/th'
import MySelectionsAPI from '../../api/home/mySelections.js'
export default { export default {
components: { components: {
footerBar, footerBar,
@ -338,21 +338,21 @@ export default {
this.initTcpListeners() this.initTcpListeners()
// TCP // TCP
this.$nextTick(() => {
console.log('页面渲染完成,开始自动连接TCP服务器...')
//
setTimeout(() => {
// TCPchannel 1
console.log('连接今日市场概览TCP(channel 1)...')
this.connectTcp()
// TCPchannel 2
setTimeout(() => {
console.log('连接我的自选TCP(channel 2)...')
this.connectMyStocksTcp()
}, 500)
}, 1000)
})
// this.$nextTick(() => {
// console.log('TCP...')
// //
// setTimeout(() => {
// // TCPchannel 1
// console.log('TCPchannel 1...')
// this.connectTcp()
// // TCPchannel 2
// setTimeout(() => {
// console.log('TCPchannel 2...')
// this.connectMyStocksTcp()
// }, 500)
// }, 1000)
// })
}, },
// //

Loading…
Cancel
Save