From 240a9c529f2c2e4885054ee929b5ed37751fd375 Mon Sep 17 00:00:00 2001 From: zhangyan Date: Thu, 1 Aug 2024 15:09:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=A1=86=E9=80=89=E6=97=B6=E6=97=97=E5=AD=90=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E7=9A=84=E7=BA=BF=E6=9C=AA=E6=B6=88=E5=A4=B1=E5=8F=8A=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E6=A1=86=E9=80=89touch=E5=8F=8A=E5=85=B6=E4=BB=96func?= =?UTF-8?q?=E6=97=B6=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangyan --- ide/src/trace/component/SpSystemTrace.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ide/src/trace/component/SpSystemTrace.ts b/ide/src/trace/component/SpSystemTrace.ts index 74c893600..0970fb159 100644 --- a/ide/src/trace/component/SpSystemTrace.ts +++ b/ide/src/trace/component/SpSystemTrace.ts @@ -348,6 +348,7 @@ export class SpSystemTrace extends BaseElement { for (let i = 0; i < flagList.length; i++) { if (flagList[i].type === 'triangle') { flagList.splice(i, 1); + this.timerShaftELFlagChange(this.hoverFlag, null); i--; } } @@ -355,8 +356,10 @@ export class SpSystemTrace extends BaseElement { pushPidToSelection(selection: SelectionParam, id: string): void { let pid = parseInt(id); - if (!selection.processIds.includes(pid)) { - selection.processIds.push(pid); + if (!isNaN(pid)) { + if (!selection.processIds.includes(pid)) { + selection.processIds.push(pid); + } } } // @ts-ignore -- Gitee