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) + } }