添加查询id是否存在

This commit is contained in:
joylink_fanyuhong 2024-10-14 09:39:50 +08:00
parent af71702840
commit 78507c2b91
1 changed files with 6 additions and 0 deletions

View File

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