|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div class="home"> |
|
|
|
<div class="topnav">宝安区公共文化体育服务中心展示平台</div> |
|
|
|
<div class="topnav">宝安区公共文化体育服务中心客流数据</div> |
|
|
|
<!-- 图片 --> |
|
|
|
<div class="gymbox"> |
|
|
|
<div class="gympic"> |
|
|
|
@ -692,10 +692,12 @@ export default { |
|
|
|
getsckdata(){ |
|
|
|
let that = this; |
|
|
|
// websocket |
|
|
|
ws = new WebSocket(publicConfig.WS_URL_ZL); |
|
|
|
ws.onopen = function() { |
|
|
|
// console.log("ws connected success!") |
|
|
|
}; |
|
|
|
// ws = new WebSocket(publicConfig.WS_URL_ZL); |
|
|
|
// ws.onopen = function() { |
|
|
|
// // console.log("ws connected success!") |
|
|
|
// }; |
|
|
|
// event source |
|
|
|
ws = new EventSource("http://www.balib.cn:8442/ws_task_real.php"); |
|
|
|
ws.onclose = function(event) { |
|
|
|
// console.log('WebSocket连接已关闭'); |
|
|
|
}; |
|
|
|
|