feat(mcp market): Add configuration update notification and refactor MCP list fetching

- Add marketConfigUpdated i18n message in English and Chinese translations
- Replace inline MCP list fetching logic with fetchMcpList function call
- Improve code maintainability by centralizing MCP list retrieval logic
- Ensure consistent handling of MCP list state across configuration updates
This commit is contained in:
yujiangping
2026-03-13 17:34:18 +08:00
parent 39f3a85bb1
commit 8097f227ca
3 changed files with 4 additions and 14 deletions

View File

@@ -1993,6 +1993,7 @@ export const zh = {
marketConnected: '● 已连接',
marketDisconnected: '○ 未连接',
marketConnecting: '正在连接 {{name}}...',
marketConfigUpdated: '{{name}} 配置已更新',
serverUrlInvalid: '必须以 http:// 或 https:// 开头,且不能有前后空格',
requestHeaderKeyInvalid: '只支持英文、数字、连字符(-)、下划线(_),不能以连字符或下划线开头结尾',
},