diff --git a/src/views/task/onlineLinkCountData.vue b/src/views/task/onlineLinkCountData.vue index d0818cb..a6271fa 100644 --- a/src/views/task/onlineLinkCountData.vue +++ b/src/views/task/onlineLinkCountData.vue @@ -124,8 +124,8 @@ export default { }, websocketonmessage: function (e) { console.log(e) - if (e.length > 0) { - this.contentList.unshift(e); + if (e.data.length > 0) { + this.contentList.unshift(e.data); } this.getTables() }, @@ -145,7 +145,6 @@ export default { getAction("/online/getOnlineLinkCountData",{}).then((res)=>{ if(res.success){ Object.keys(res.result).forEach(function(key){ - console.log(res.result[key]) t.totalNumberCataloguesData.push([key, parseInt(res.result[key])]) }); t.gettotalNumberCatalogues();