feat: introduce event-driven proxy manager and optimize proxy config updates

This commit is contained in:
wonfen
2025-06-21 21:38:42 +08:00
parent 3f7a7b8cd2
commit 034885d810
7 changed files with 776 additions and 273 deletions

View File

@@ -479,7 +479,19 @@ const Layout = () => {
}
return (
<SWRConfig value={{ errorRetryCount: 3 }}>
<SWRConfig
value={{
errorRetryCount: 3,
errorRetryInterval: 5000,
onError: (error, key) => {
console.error(`[SWR Error] Key: ${key}, Error:`, error);
if (key !== "getAutotemProxy") {
console.error(`SWR Error for ${key}:`, error);
}
},
dedupingInterval: 2000,
}}
>
<ThemeProvider theme={theme}>
<NoticeManager />
<div