fix: adjust swr option

This commit is contained in:
GyDi committed 2023-03-16 17:03:12 +08:00
1 parent 16490541e4
commit 198109cd43
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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;