[优化] 修复

This commit is contained in:
ryan
2026-06-01 16:33:22 +08:00
parent b968043117
commit d09e64ddc6
@@ -48,7 +48,6 @@ import {
getApplyLabel, getApplyLabel,
getApplyVariant, getApplyVariant,
getNodeStatusLabel, getNodeStatusLabel,
getNodeStatusVariant,
getServerUrl, getServerUrl,
getUpdateMode, getUpdateMode,
isMeaningfulTime, isMeaningfulTime,
@@ -292,12 +291,12 @@ export function TunnelDetailPage({ node }: { node: NodeItem }) {
const normalizedServerUrl = getServerUrl(serverUrl); const normalizedServerUrl = getServerUrl(serverUrl);
const tunnelInstallCommand = const tunnelInstallCommand =
normalizedServerUrl && node.agent_token normalizedServerUrl && node.access_token
? buildTunnelInstallCommand(normalizedServerUrl, node.agent_token) ? buildTunnelInstallCommand(normalizedServerUrl, node.access_token)
: ''; : '';
const tunnelDockerInstallCommand = const tunnelDockerInstallCommand =
normalizedServerUrl && node.agent_token normalizedServerUrl && node.access_token
? buildTunnelDockerInstallCommand(normalizedServerUrl, node.agent_token) ? buildTunnelDockerInstallCommand(normalizedServerUrl, node.access_token)
: ''; : '';
const updateMode = getUpdateMode(node); const updateMode = getUpdateMode(node);
@@ -923,7 +922,7 @@ export function TunnelDetailPage({ node }: { node: NodeItem }) {
Tunnel Token Tunnel Token
</p> </p>
<p className="mt-2 text-sm break-all text-[var(--foreground-primary)]"> <p className="mt-2 text-sm break-all text-[var(--foreground-primary)]">
{node.agent_token || '暂无'} {node.access_token || '暂无'}
</p> </p>
</div> </div>
</div> </div>