From 25d1b3454b31b4b0eb8721c582e3ad6ea14ed7c8 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Mon, 10 Aug 2026 15:54:23 +0800 Subject: [PATCH] chore(mobile-h5): add API_BASE_URL config for login Co-authored-by: Cursor --- mobile-h5/utils/config.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 mobile-h5/utils/config.js diff --git a/mobile-h5/utils/config.js b/mobile-h5/utils/config.js new file mode 100644 index 00000000..27f5cc43 --- /dev/null +++ b/mobile-h5/utils/config.js @@ -0,0 +1,7 @@ +/** + * 后端 API 根路径(含 /api,不含末尾斜杠)。 + * 本地默认;真机 / 体验版请改为可达地址,例如 http://192.168.x.x:8000/api + */ +export const API_BASE_URL = 'http://127.0.0.1:8000/api' + +export const REQUEST_TIMEOUT_MS = 15000