aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/utils/http.ts
diff options
context:
space:
mode:
authorNtkskwk <natsukawa247@outlook.com>2024-09-10 05:05:26 +0800
committerNtkskwk <natsukawa247@outlook.com>2024-09-10 05:05:26 +0800
commit450e3f66a14820566942a213953d7d7f54b9b91d (patch)
tree475a01e1872e991bbb96fba549a8984fe949e2f9 /src/utils/http.ts
parentdc47286c90c8cd94813fcb82532679678494638b (diff)
parent039b925f3c15f5435dce2dc9aa0c23f84928d32d (diff)
downloadHydroRollSite-450e3f66a14820566942a213953d7d7f54b9b91d.tar.gz
HydroRollSite-450e3f66a14820566942a213953d7d7f54b9b91d.zip
Merge remote-tracking branch 'refs/remotes/origin/main' into farm
# Conflicts: # yarn.lock
Diffstat (limited to 'src/utils/http.ts')
-rw-r--r--src/utils/http.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/http.ts b/src/utils/http.ts
new file mode 100644
index 0000000..d49fad4
--- /dev/null
+++ b/src/utils/http.ts
@@ -0,0 +1,9 @@
+import axios from "axios";
+
+const serviceAxios = axios.create({
+ baseURL: "",
+ timeout: 3 * 1000,
+ withCredentials: false,
+});
+
+export default serviceAxios; \ No newline at end of file