fix(api): 修复自动墙检父节点筛选与启用语义
统一自动墙检查询逻辑,兼容 parent_id 为 null 或 0 的父节点 将 gfw_check_enabled 的空值视为开启,避免页面显示已启用却未入队 同时调整管理端自动墙检统计仅计算父节点 并更新 CI 配置以忽略 .helloagents 变更触发后端发布
This commit is contained in:
@@ -300,5 +300,5 @@ export function countAutoOnlineNodes(nodes: AdminNodeItem[]): number {
|
||||
}
|
||||
|
||||
export function countAutoGfwCheckNodes(nodes: AdminNodeItem[]): number {
|
||||
return nodes.filter((node) => node.gfw_check_enabled !== false).length
|
||||
return nodes.filter((node) => !node.parent_id && node.gfw_check_enabled !== false).length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user