From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/config/axios/config.ts | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/src/config/axios/config.ts b/src/config/axios/config.ts
new file mode 100644
index 0000000..8116508
--- /dev/null
+++ b/src/config/axios/config.ts
@@ -0,0 +1,28 @@
+const config: {
+ base_url: string
+ result_code: number | string
+ default_headers: AxiosHeaders
+ request_timeout: number
+} = {
+ /**
+ * api璇锋眰鍩虹璺緞
+ */
+ base_url: import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL,
+ /**
+ * 鎺ュ彛鎴愬姛杩斿洖鐘舵�佺爜
+ */
+ result_code: 200,
+
+ /**
+ * 鎺ュ彛璇锋眰瓒呮椂鏃堕棿
+ */
+ request_timeout: 30000,
+
+ /**
+ * 榛樿鎺ュ彛璇锋眰绫诲瀷
+ * 鍙�夊�硷細application/x-www-form-urlencoded multipart/form-data
+ */
+ default_headers: 'application/json'
+}
+
+export { config }
--
Gitblit v1.8.0