feat(platform): expose amap server readiness
This commit is contained in:
@@ -105,6 +105,7 @@ export function OpsQuality() {
|
||||
<Card bordered title="地图安全配置" loading={loading} style={{ marginTop: 16 }}>
|
||||
<Space wrap>
|
||||
<Tag color={runtime?.amapWebJsConfigured ? 'green' : 'orange'}>{runtime?.amapWebJsConfigured ? 'Web JS Key 已配置' : 'Web JS Key 未配置'}</Tag>
|
||||
<Tag color={runtime?.amapApiConfigured ? 'green' : 'orange'}>{runtime?.amapApiConfigured ? '服务端 API Key 已配置' : '服务端 API Key 未配置'}</Tag>
|
||||
<Tag color={amapSecurityColor(health)}>{amapSecurityText(health)}</Tag>
|
||||
<Tag color={runtime?.amapSecurityProxyEnabled ? 'green' : 'grey'}>{runtime?.amapSecurityServiceHost || '代理未启用'}</Tag>
|
||||
</Space>
|
||||
|
||||
@@ -368,6 +368,12 @@ export function Realtime({
|
||||
color: amapConfigured ? 'green' as const : 'orange' as const,
|
||||
detail: amapConfigured ? '前端可加载高德 Web JS API。' : '缺少公开 Key,地图将使用坐标预览。'
|
||||
},
|
||||
{
|
||||
label: '服务端 API Key',
|
||||
value: runtime?.amapApiConfigured ? '已配置' : '未配置',
|
||||
color: runtime?.amapApiConfigured ? 'green' as const : 'orange' as const,
|
||||
detail: runtime?.amapApiConfigured ? '后端可支持地理编码、路线、围栏等服务端地图能力。' : '服务端地图能力未配置,后续地理服务会降级。'
|
||||
},
|
||||
{
|
||||
label: '安全代理',
|
||||
value: amapSecurityServiceHost || '未启用',
|
||||
|
||||
Reference in New Issue
Block a user