代码优化:清理冗余功能并修复关键问题

- 删除未使用的 axios 依赖
- 移除 Provider 接口中未使用的 model 字段
- 删除未使用的供应商连通性检查功能
- 修复 preload.ts 中缺失的 IPC 方法暴露
- 简化 UI:移除重复的单选按钮,仅保留启用按钮
- 修复 TypeScript 接口定义不完整的问题
This commit is contained in:
farion1231
2025-08-06 20:48:03 +08:00
parent dbafab57cf
commit 588883ffc4
6 changed files with 116 additions and 126 deletions

View File

@@ -44,12 +44,6 @@ const ProviderList: React.FC<ProviderListProps> = ({
>
<div className="provider-info">
<div className="provider-name">
<input
type="radio"
name="provider"
checked={isCurrent}
onChange={() => onSwitch(provider.id)}
/>
<span>{provider.name}</span>
{isCurrent && <span className="current-badge">使</span>}
</div>