mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 16:16:37 +08:00
[优化] 修复
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user