diff --git a/src/App.tsx b/src/App.tsx index a18136f..1189eda 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -14,10 +14,6 @@ function App() { const [providers, setProviders] = useState>({}); const [currentProviderId, setCurrentProviderId] = useState(""); const [isAddModalOpen, setIsAddModalOpen] = useState(false); - const [configStatus, setConfigStatus] = useState<{ - exists: boolean; - path: string; - } | null>(null); const [editingProviderId, setEditingProviderId] = useState( null, ); @@ -64,7 +60,6 @@ function App() { // 加载供应商列表 useEffect(() => { loadProviders(); - loadConfigStatus(); }, [activeApp]); // 当切换应用时重新加载 // 清理定时器 @@ -117,13 +112,6 @@ function App() { } }; - const loadConfigStatus = async () => { - const status = await window.api.getConfigStatus(activeApp); - setConfigStatus({ - exists: Boolean(status?.exists), - path: String(status?.path || ""), - }); - }; // 生成唯一ID const generateId = () => { @@ -212,9 +200,6 @@ function App() { } }; - const handleOpenConfigFolder = async () => { - await window.api.openConfigFolder(activeApp); - }; return (
@@ -272,34 +257,6 @@ function App() { onEdit={setEditingProviderId} /> - {/* 配置文件路径信息 */} - {configStatus && ( -
-
-
- - {activeApp === "claude" ? "Claude Code" : "Codex"}{" "} - 配置文件位置: - - - {configStatus.path} - - {!configStatus.exists && ( - - (未创建,切换或保存时会自动创建) - - )} -
- -
-
- )}