优化设置页面代码

This commit is contained in:
xintaofei
2026-03-07 11:43:49 +08:00
parent 5ca9fd0b2e
commit aeecc4769c
2 changed files with 43 additions and 25 deletions

View File

@@ -559,7 +559,14 @@ export function McpSettings() {
} finally {
setRunningAction(null)
}
}, [localAppsDraft, localSpecText, refreshLocalServers, selectedLocal, t])
}, [
localAppsDraft,
localSpecText,
mcpT,
refreshLocalServers,
selectedLocal,
t,
])
const switchInstallOption = useCallback(
(optionId: string) => {
@@ -668,6 +675,7 @@ export function McpSettings() {
marketDetail,
marketSpecDirty,
marketSpecText,
mcpT,
refreshLocalServers,
selectedInstallOption,
t,