refactor: 移除 success 字段,简化为 matched 单层判定模型
This commit is contained in:
@@ -9,7 +9,7 @@ interface TargetGroupProps {
|
||||
}
|
||||
|
||||
export function TargetGroup({ name, targets, onTargetClick }: TargetGroupProps) {
|
||||
const up = targets.filter((t) => t.latestCheck?.success && t.latestCheck?.matched).length;
|
||||
const up = targets.filter((t) => t.latestCheck?.matched).length;
|
||||
const down = targets.length - up;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user