fix(usage): 关闭「启用用量查询」后不再发起查询且隐藏用量行
useUsageQuery 增加 disabled 门控:关闭时自动查询不发、refresh no-op、 状态立即复位 idle(UsageFooter 对 idle 返回 null,compact/detail 均 整体隐藏);在途响应按 generation 作废且不写入模块级共享缓存, 避免关闭瞬间的失败结果在 5 分钟内重新挂载时复活。
This commit is contained in:
1 parent
36fc9c50a8
commit
1de8b9ee4c
2 files changed
+20
-7
No files matched your search
@@ -69,7 +69,8 @@ function ProviderCard({
|
||||
agent,
|
||||
provider.name,
|
||||
provider.usageKinds,
|
||||
provider.usageConfig?.autoQueryIntervalMinutes
|
||||
provider.usageConfig?.autoQueryIntervalMinutes,
|
||||
provider.usageConfig?.enabled === false
|
||||
);
|
||||
const providerModels = Object.values(models).filter(
|
||||
(m) => m.provider === provider.name
|
||||
|
||||
Reference in new issue
Block a user