代码优化:清理冗余功能并修复关键问题
- 删除未使用的 axios 依赖 - 移除 Provider 接口中未使用的 model 字段 - 删除未使用的供应商连通性检查功能 - 修复 preload.ts 中缺失的 IPC 方法暴露 - 简化 UI:移除重复的单选按钮,仅保留启用按钮 - 修复 TypeScript 接口定义不完整的问题
This commit is contained in:
@@ -3,7 +3,6 @@ export interface Provider {
|
||||
name: string
|
||||
apiUrl: string
|
||||
apiKey: string
|
||||
model?: string
|
||||
websiteUrl?: string
|
||||
}
|
||||
|
||||
@@ -23,7 +22,6 @@ declare global {
|
||||
switchProvider: (providerId: string) => Promise<boolean>
|
||||
getClaudeCodeConfigPath: () => Promise<string>
|
||||
selectConfigFile: () => Promise<string | null>
|
||||
checkStatus: (provider: Provider) => Promise<boolean>
|
||||
openExternal: (url: string) => Promise<boolean>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user