feat:注册功能

This commit is contained in:
李伊帆
2026-09-20 17:00:55 +08:00
parent 0e80de4548
commit ce93816fd5
22 changed files with 722 additions and 51 deletions

12
src/constants/config.ts Normal file
View File

@@ -0,0 +1,12 @@
/** 后端服务地址 */
export const API_HOST = '192.168.1.187'
export const API_PORT = 8080
export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || `http://${API_HOST}:${API_PORT}`
/** 接口请求超时(毫秒) */
export const API_TIMEOUT = 15000
/** APP 端 OAuth 客户端 ID(sys_client 表,需与后端「客户端管理」一致) */
export const AUTH_CLIENT_ID = import.meta.env.VITE_AUTH_CLIENT_ID || ''