[修复] 节点类型字段名不匹配:前端 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
@@ -559,13 +559,13 @@ export function NodeDetailPage({ nodeId }: { nodeId: string }) {
const normalizedServerUrl = getServerUrl(serverUrl);
const nodeInstallCommand =
normalizedServerUrl && node.agent_token
? node.type === 'tunnel_relay'
? node.node_type === 'tunnel_relay'
? buildRelayInstallCommand(normalizedServerUrl, node.agent_token)
: buildNodeInstallCommand(normalizedServerUrl, node.agent_token)
: '';
const nodeDockerInstallCommand =
normalizedServerUrl && node.agent_token
? node.type === 'tunnel_relay'
? node.node_type === 'tunnel_relay'
? buildRelayDockerInstallCommand(normalizedServerUrl, node.agent_token)
: buildNodeDockerInstallCommand(normalizedServerUrl, node.agent_token)
: '';