fix settings data export & parsing error (#373)

This commit is contained in:
samanhappy
2025-10-16 13:08:28 +08:00
committed by GitHub
parent 3e9e5cc3c9
commit bd4c546bba
3 changed files with 97 additions and 68 deletions

View File

@@ -287,7 +287,7 @@ const SettingsPage: React.FC = () => {
try {
const result = await exportMCPSettings()
console.log('Fetched MCP settings:', result)
const configJson = JSON.stringify(result, null, 2)
const configJson = JSON.stringify(result.data, null, 2)
setMcpSettingsJson(configJson)
} catch (error) {
console.error('Error fetching MCP settings:', error)