From 78507c2b91f3f100ed732e5188341a725ef596de Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Mon, 14 Oct 2024 09:39:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9F=A5=E8=AF=A2id=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/GraphicStore.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/GraphicStore.ts b/src/core/GraphicStore.ts index c237d74..7ae6d01 100644 --- a/src/core/GraphicStore.ts +++ b/src/core/GraphicStore.ts @@ -60,6 +60,8 @@ export interface GraphicQueryStore { code: string, type: string ): T[]; + + checkIdExist(v: number): boolean; } /** @@ -208,4 +210,8 @@ export class GraphicStore implements GraphicQueryStore { this.relationManage.clear(); this.store.clear(); } + + checkIdExist(id: number) { + return this.store.has(id) + } }