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 -1
View File
@@ -16,7 +16,7 @@ onMounted(() => {
const mongoPill = computed(() => {
if (!health.value) return { cls: '', text: 'MONGO ?' }
return health.value.mongo.ok
? { cls: 'on', text: `MONGO · ${health.value.mongo.db}` }
? { cls: 'on', text: 'MONGO' }
: { cls: 'off', text: 'MONGO 未连接' }
})
</script>