From 9c8174ef6a865fa836ebabb773ba76057295b6d4 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Sun, 4 Feb 2024 20:04:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9C=8B=E6=9D=BF=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A1=8C=E4=B8=BA=E6=8F=92=E5=85=A5=E5=8F=88?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E5=87=8F=E5=B0=91=E6=B8=B2=E6=9F=93=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/overview/hooks/useWS.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/views/dashboard/overview/hooks/useWS.ts b/src/views/dashboard/overview/hooks/useWS.ts index 7a0c67bd..1b0c2842 100644 --- a/src/views/dashboard/overview/hooks/useWS.ts +++ b/src/views/dashboard/overview/hooks/useWS.ts @@ -108,9 +108,7 @@ export default function useWS() { eventData.value.unshift(v); eventTotal.value += 1; eventId.value = v.eId; - if (eventData.value.length > 50) { - eventData.value.pop(); - } + eventData.value.pop(); } } break; @@ -122,9 +120,7 @@ export default function useWS() { eventData.value.unshift(v); eventTotal.value += 1; eventId.value = v.eId; - if (eventData.value.length > 50) { - eventData.value.pop(); - } + eventData.value.pop(); } } break;