security: 隐藏 MongoDB 连接串与库名,health 不再返回 uri/db 并对错误脱敏
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user