security: 隐藏 MongoDB 连接串与库名,health 不再返回 uri/db 并对错误脱敏

This commit is contained in:
ice-a
2026-10-16 19:08:06 +08:00
parent e1572e1327
commit 090a7254e0
7 changed files with 16 additions and 13 deletions
-1
View File
@@ -321,7 +321,6 @@ onMounted(load)
<dt>MongoDB</dt>
<dd>
<span :class="health?.mongo.ok ? 'ok' : 'err'">{{ health?.mongo.ok ? '已连接' : '未连接' }}</span>
<span class="mono small dim"> · {{ health?.mongo.uri }} / {{ health?.mongo.db }}</span>
<div v-if="health?.mongo.error" class="small err mono break">{{ health.mongo.error }}</div>
</dd>
<dt>磁力解析</dt>