class StoreManagerClass { storeMap = new Map(); setStore(key: string, instance: any) { this.storeMap.set(key, instance); } check(key: string) { if (this.storeMap.has(key)) { return this.storeMap.get(key); } return false; } } /** * store 管理器 * @category Managers */ export const StoreManager = new StoreManagerClass();