feat(web): improve MCP market UI responsiveness and add refresh after service addition

- Change getMarketTools parameter type from Query to optional Record for flexibility
- Rename marketConfig i18n key to marketConfigBtn for clarity and consistency
- Add handleRefreshAfterAdd function to refresh MCP list after successful service addition
- Update grid layout to use auto-fill responsive columns instead of fixed 3-column layout
- Disable Add button for services already in database to prevent duplicate additions
- Connect McpServiceModal refresh callback to handleRefreshAfterAdd for cache invalidation
- Improves user experience by automatically updating market list after adding services
This commit is contained in:
yujiangping
2026-03-11 17:11:16 +08:00
parent f405ac4d84
commit 168cce1678
4 changed files with 27 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ export const getToolMethods = (tool_id: string) => {
}
// MCP市场列表
export const getMarketTools = (data: Query) => {
export const getMarketTools = (data?: Record<string, any>) => {
return request.get('/mcp_markets/mcp_markets', data)
}
// 市场配置创建