fix: resolve toggle flicker for "Auto Start" and "DNS Override"

This commit is contained in:
wonfen
2025-03-27 12:29:20 +08:00
parent 7716e2bc87
commit daad623855
3 changed files with 20 additions and 10 deletions

View File

@@ -43,6 +43,7 @@ const SettingSystem = ({ onError }: Props) => {
const { data: autoLaunchEnabled } = useSWR(
"getAutoLaunchStatus",
getAutoLaunchStatus,
{ revalidateOnFocus: false }
);
// 当实际自启动状态与配置不同步时更新配置