Selaa lähdekoodia

chore(mobile-h5): add API_BASE_URL config for login

Co-authored-by: Cursor <cursoragent@cursor.com>
zlwu 2 kuukautta sitten
vanhempi
commit
25d1b3454b
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      mobile-h5/utils/config.js

+ 7 - 0
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