feature/ui:1.0 feature,like mcp price method support use token and set more config about home page

This commit is contained in:
lethe committed 2025-07-30 15:59:10 +08:00
1 parent 2262a7f49a
commit 8946be619d
69 files changed
+4189 -1021

No files matched your search

+17 -1
View File
@@ -37,10 +37,26 @@ export class PlatformConfigService {
console.error(response.error_message);
return {
platform: _DefaultPlatformConfig,
login: undefined,
faq: [],
top_navigation: [],
embeded_html: undefined,
payment_channels: [],
is_installed: false,
};
}
return response.data;
// 确保返回的数据结构正确
const data = response.data;
return {
platform: data.platform || _DefaultPlatformConfig,
login: data.login,
faq: data.faq || [],
top_navigation: data.top_navigation || [],
embeded_html: data.embeded_html,
payment_channels: data.payment_channels || [],
is_installed: data.is_installed || false,
};
}
}