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:
@@ -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)
|
||||
}
|
||||
// 市场配置创建
|
||||
|
||||
Reference in New Issue
Block a user