fix(ui): add CUSTOM_ROUTER_PATH support in general settings

- Add CUSTOM_ROUTER_PATH field to UI configuration
  - Fix configuration preservation during save operations
This commit is contained in:
zoyopei
2025-08-24 19:52:14 +08:00
parent 9a5ea191f8
commit 7cc41d83cf
5 changed files with 26 additions and 4 deletions

View File

@@ -103,7 +103,8 @@ export function ConfigProvider({ children }: ConfigProviderProps) {
longContext: '',
longContextThreshold: 60000,
webSearch: ''
}
},
CUSTOM_ROUTER_PATH: typeof data.CUSTOM_ROUTER_PATH === 'string' ? data.CUSTOM_ROUTER_PATH : ''
};
setConfig(validConfig);
@@ -132,7 +133,8 @@ export function ConfigProvider({ children }: ConfigProviderProps) {
longContext: '',
longContextThreshold: 60000,
webSearch: ''
}
},
CUSTOM_ROUTER_PATH: ''
});
setError(err as Error);
}