From 6578cd8c510746bc746f2a167f9f7b03a575d5f1 Mon Sep 17 00:00:00 2001 From: Tunglies Date: Tue, 13 May 2025 01:11:20 +0800 Subject: [PATCH] fix: TUN switch button logical bug --- src/App.tsx | 3 +-- src/components/setting/setting-system.tsx | 7 +------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e3524f25..2ef77bb4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,4 @@ import { AppDataProvider } from "./providers/app-data-provider"; -import React from "react"; import Layout from "./pages/_layout"; function App() { @@ -10,4 +9,4 @@ function App() { ); } -export default App; \ No newline at end of file +export default App; diff --git a/src/components/setting/setting-system.tsx b/src/components/setting/setting-system.tsx index fe60ac57..67ae3cdb 100644 --- a/src/components/setting/setting-system.tsx +++ b/src/components/setting/setting-system.tsx @@ -39,11 +39,6 @@ const SettingSystem = ({ onError }: Props) => { const { data: sysproxy } = useSWR("getSystemProxy", getSystemProxy); const { data: autoproxy } = useSWR("getAutotemProxy", getAutotemProxy); - const { data: autoLaunchEnabled } = useSWR( - "getAutoLaunchStatus", - getAutoLaunchStatus, - { revalidateOnFocus: false }, - ); const { isAdminMode, isSidecarMode, mutateRunningMode, isServiceOk } = useSystemState(); @@ -148,7 +143,7 @@ const SettingSystem = ({ onError }: Props) => { return patchVerge({ enable_tun_mode: e }); }} > - +