From 00f2c916ebda659dcaa8f1faaef2a764078973ec Mon Sep 17 00:00:00 2001 From: puzhen <1303385763@qq.com> Date: Thu, 6 Nov 2025 21:32:00 +0100 Subject: [PATCH] update --- src/pages/Setting/General.tsx | 61 +----------------- utils/__pycache__/__init__.cpython-310.pyc | Bin 193 -> 221 bytes .../traceroot_wrapper.cpython-310.pyc | Bin 2523 -> 2551 bytes 3 files changed, 2 insertions(+), 59 deletions(-) diff --git a/src/pages/Setting/General.tsx b/src/pages/Setting/General.tsx index 7b309689c..85fc89477 100644 --- a/src/pages/Setting/General.tsx +++ b/src/pages/Setting/General.tsx @@ -1,20 +1,19 @@ import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; -import { LogOut, Settings, Check, Chrome, RefreshCw } from "lucide-react"; +import { LogOut, Settings, Check } from "lucide-react"; import light from "@/assets/light.png"; import dark from "@/assets/dark.png"; import transparent from "@/assets/transparent.png"; import { useAuthStore } from "@/store/authStore"; import { useNavigate } from "react-router-dom"; -import { proxyFetchPut, proxyFetchGet, fetchPost } from "@/api/http"; +import { proxyFetchPut, proxyFetchGet } from "@/api/http"; import { createRef, RefObject } from "react"; import { useEffect, useState } from "react"; import { useChatStore } from "@/store/chatStore"; import { LocaleEnum, switchLanguage } from "@/i18n"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; -import CookieManager from "./components/CookieManager"; import { Select, @@ -32,7 +31,6 @@ export default function SettingGeneral() { const authStore = useAuthStore(); const navigate = useNavigate(); const [isLoading, setIsLoading] = useState(false); - const [isBrowserOpening, setIsBrowserOpening] = useState(false); const setAppearance = authStore.setAppearance; const language = authStore.language; const setLanguage = authStore.setLanguage; @@ -134,25 +132,6 @@ export default function SettingGeneral() { } }, []); - const handleOpenBrowserLogin = async () => { - try { - setIsBrowserOpening(true); - const response = await fetchPost("/browser/login"); - - if (response.success) { - toast.success(t("setting.browser-opened-successfully")); - console.log("Browser session info:", response); - } else { - toast.error(t("setting.failed-to-open-browser")); - } - } catch (error) { - console.error("Error opening browser:", error); - toast.error(t("setting.failed-to-open-browser")); - } finally { - setIsBrowserOpening(false); - } - }; - return (