fix(design): 按概念图重排面板层级并验证真实组件

This commit is contained in:
2026-11-02 23:47:12 +08:00
parent ef358794dc
commit 0e8f598fe6
12 changed files with 221 additions and 86 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ final class MetricsStore {
await sampler.setProcessVisible(self?.isPanelVisible == true)
while !Task.isCancelled {
let visibleGeneration = self?.visibilityGeneration
var next = await sampler.sample()
var next = await sampler.sample(includeProcesses: self?.isPanelVisible == true)
guard !Task.isCancelled, self?.generation == currentGeneration else { return }
if self?.isPanelVisible != true || self?.visibilityGeneration != visibleGeneration { next.processes = nil }
self?.snapshot = next