From b885687b5724278f8166e412ffa607974f0036e8 Mon Sep 17 00:00:00 2001 From: RenCheng Date: Wed, 28 May 2025 22:11:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/onlineLinkCountData.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();