diff --git a/src/views/data/dataManage.vue b/src/views/data/dataManage.vue index 149ddcc..52dc2a5 100644 --- a/src/views/data/dataManage.vue +++ b/src/views/data/dataManage.vue @@ -70,7 +70,6 @@ methods: { initWebSocket: function () { // WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https - var userId = store.getters.userInfo.id; var url = window._CONFIG['domianURL'].replace("https://","ws://").replace("http://","ws://")+"/websocket/1/data_distribute"; this.websock = new WebSocket(url); this.websock.onopen = this.websocketonopen;