From a429aca34406bb257c6817563ad73c40130f4b02 Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Thu, 22 Oct 2026 21:55:52 +0800 Subject: [PATCH] fix: accept MBE 'healthy' status and show model info - Updated testMbe() to accept status='healthy' from MarkBaseServer - Added model and layers info to mbeInfo display - MBE now shows 'MBE (e4b)' instead of generic 'MarkBaseEngine' --- src/views/AdminView.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/AdminView.vue b/src/views/AdminView.vue index 9bdbfe0..8def7ab 100644 --- a/src/views/AdminView.vue +++ b/src/views/AdminView.vue @@ -892,10 +892,12 @@ async function testMbe() { if (contentType.includes('application/json')) { // JSON 格式响应 const json = await resp.json() - isHealthy = json.status === 'ok' || json.status === 'OK' + isHealthy = json.status === 'ok' || json.status === 'OK' || json.status === 'healthy' mbeInfo.value = { - version: json.version || 'MarkBaseEngine', - uptime: json.uptime || 0 + version: json.model ? `MBE (${json.model})` : 'MarkBaseEngine', + uptime: json.uptime || 0, + model: json.model || null, + layers: json.layers || null } } else { // 纯文本格式响应