mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 07:13:44 +08:00
fix: adjust swr option
This commit is contained in:
parent
16490541e4
commit
198109cd43
@ -76,7 +76,7 @@ const Layout = () => {
|
||||
}, [language]);
|
||||
|
||||
return (
|
||||
<SWRConfig value={{}}>
|
||||
<SWRConfig value={{ errorRetryCount: 3 }}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<Paper
|
||||
square
|
||||
|
@ -27,6 +27,7 @@ export const getAxios = async (force: boolean = false) => {
|
||||
axiosIns = axios.create({
|
||||
baseURL: `http://${server}`,
|
||||
headers: secret ? { Authorization: `Bearer ${secret}` } : {},
|
||||
timeout: 15000,
|
||||
});
|
||||
axiosIns.interceptors.response.use((r) => r.data);
|
||||
return axiosIns;
|
||||
|
Loading…
x
Reference in New Issue
Block a user