fix: 修复节点页面IP显示为'null',移除TLS证书页面标题

This commit is contained in:
ryan
2026-03-11 23:05:03 +08:00
parent 27f96fa353
commit fba1f8ea34
2 changed files with 1 additions and 11 deletions
@@ -252,7 +252,7 @@ export function NodesPage() {
{node.name}
</p>
<p className="text-xs text-[var(--foreground-secondary)]">
IP:{node.ip || '暂无'}
IP:{node.ip || 'null'}
</p>
</div>
</td>
@@ -275,13 +275,6 @@ export function NodesPage() {
label={getApplyLabel(node.latest_apply_result)}
variant={getApplyVariant(node.latest_apply_result)}
/>
<p className="text-xs text-[var(--foreground-secondary)]">
{isMeaningfulTime(node.latest_apply_at)
? `${formatRelativeTime(
node.latest_apply_at,
)} · ${formatDateTime(node.latest_apply_at)}`
: '暂无'}
</p>
</div>
</td>
<td className="px-3 py-4 text-[var(--foreground-secondary)]">
@@ -369,7 +369,6 @@ export function TlsCertificatesPage() {
{importMode === 'manual' ? (
<AppCard
title="手动导入"
description="直接粘贴 PEM 证书和私钥内容,适合快速录入已有证书。"
>
<form className="space-y-5" onSubmit={handleManualSubmit}>
@@ -427,7 +426,6 @@ export function TlsCertificatesPage() {
</AppCard>
) : (
<AppCard
title="文档导入"
description="上传证书文件和私钥文件,适合直接复用现有 PEM 文件。"
>
<form className="space-y-5" onSubmit={handleFileSubmit}>
@@ -446,7 +444,6 @@ export function TlsCertificatesPage() {
</ResourceField>
<ResourceField
label="备注"
hint="可选,用于记录部署环境或域名范围。"
>
<ResourceInput
value={fileForm.remark}