修复注册表导出失败的问题

This commit is contained in:
2025-10-13 12:41:31 +08:00
parent 8de12dbcfc
commit f274fc4b00
3 changed files with 36 additions and 7 deletions
+4 -1
View File
@@ -470,7 +470,10 @@ router.get('/registry/export', async (req, res) => {
res.setHeader('Content-Type', 'application/json');
res.setHeader('Content-Disposition', 'attachment; filename="database-registry.json"');
res.json(registryData);
res.json({
success: true,
data: registryData
});
} catch (error) {
logger.error('导出数据库注册表失败:', error);