(storeName: string)
| 519 | |
| 520 | // 根据 store 名称获取对应的对象存储名称 |
| 521 | function getObjectStoreName(storeName: string): string { |
| 522 | const storeMap: { [key: string]: string } = { |
| 523 | 'settings-store': OBJECT_STORES.SETTINGS, |
| 524 | 'messages-store': OBJECT_STORES.MESSAGES, |
| 525 | 'search-store': OBJECT_STORES.SEARCH, |
| 526 | 'tabs-store': OBJECT_STORES.TABS, |
| 527 | 'ui-store': OBJECT_STORES.UI, |
| 528 | 'object-store': OBJECT_STORES.OBJECTS, |
| 529 | 'crosstab-store': OBJECT_STORES.CROSSTAB, |
| 530 | 'ai-tasks-store': OBJECT_STORES.AI_TASKS, |
| 531 | 'favorites-store': OBJECT_STORES.FAVORITES |
| 532 | } |
| 533 | return storeMap[storeName] || storeName |
| 534 | } |
| 535 | |
| 536 | // 通用的store状态清除函数 |
| 537 | export const clearStoreState = async (storeName: string) => { |
no outgoing calls
no test coverage detected