mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 08:06:37 +08:00
[修复] 节点类型字段名不匹配:前端 type 改为 node_type 对齐后端 JSON tag
This commit is contained in:
@@ -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)
|
||||
: '';
|
||||
|
||||
Reference in New Issue
Block a user