fix(api): harden response contracts

This commit is contained in:
2026-07-21 16:44:16 +08:00
parent c56ada3708
commit 2275d388a7
11 changed files with 191 additions and 26 deletions

View File

@@ -10,6 +10,7 @@ import {
IconSafe,
IconUserGroup,
} from '@arco-design/web-react/icon'
import { normalizeBaseUrl } from '../api/client'
const { Title, Text, Paragraph } = Typography
@@ -129,11 +130,6 @@ async function checkServerStatus(
}
}
function normalizeBaseUrl(value: string) {
const trimmed = value.trim()
return trimmed.endsWith('/') ? trimmed.slice(0, -1) : trimmed
}
function ValuePoint({ icon, title, desc }: { icon: ReactElement; title: string; desc: string }) {
return (
<div className="value-point">