()
| 160 | * 获取用户配置 |
| 161 | */ |
| 162 | export async function getCachedUserSettings() { |
| 163 | const data = await queryClient.fetchQuery( |
| 164 | [CacheKey.userSettings], |
| 165 | () => getUserSettings(), |
| 166 | { |
| 167 | staleTime: 10 * 60 * 1000, // 缓存10分钟 |
| 168 | } |
| 169 | ); |
| 170 | |
| 171 | return data; |
| 172 | } |
no test coverage detected