Compare commits

...

2 Commits

Author SHA1 Message Date
joylink_fanyuhong
3214ef1cc4 Merge branch 'master' of https://gitea.joylink.club/joylink/graphic-pixi 2024-10-14 09:39:51 +08:00
joylink_fanyuhong
78507c2b91 添加查询id是否存在 2024-10-14 09:39:50 +08:00

View File

@ -60,6 +60,8 @@ export interface GraphicQueryStore {
code: string, code: string,
type: string type: string
): T[]; ): T[];
checkIdExist(v: number): boolean;
} }
/** /**
@ -208,4 +210,8 @@ export class GraphicStore implements GraphicQueryStore {
this.relationManage.clear(); this.relationManage.clear();
this.store.clear(); this.store.clear();
} }
checkIdExist(id: number) {
return this.store.has(id)
}
} }