Skip to content
Snippets Groups Projects
Unverified Commit 630249d2 authored by GyDi's avatar GyDi
Browse files

fix: adjust swr option

parent db99b4cb
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment