[修复] 节点类型字段名不匹配:前端 type 改为 node_type 对齐后端 JSON tag

This commit is contained in:
ryan
2026-06-01 11:26:01 +08:00
parent 7372ac230b
commit fce2e014e5
4 changed files with 8 additions and 8 deletions
@@ -314,7 +314,7 @@ export function NodesPage() {
<p className="font-medium text-[var(--foreground-primary)]">
{node.name}
</p>
{node.type === 'tunnel_relay' ? (
{node.node_type === 'tunnel_relay' ? (
<span className="rounded-full border border-blue-500/20 bg-blue-50 px-2 py-0.5 text-xs text-blue-700 dark:bg-blue-900/30 dark:text-blue-300">
Relay
</span>
@@ -345,7 +345,7 @@ export function NodesPage() {
</td>
<td className="px-3 py-4">
<div className="space-y-2">
{node.type === 'tunnel_relay' ? (
{node.node_type === 'tunnel_relay' ? (
<StatusBadge
label={getRelayStatusLabel(node.relay_status)}
variant={getRelayStatusVariant(node.relay_status)}