You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
623 B
24 lines
623 B
// API配置 |
|
export const API_BASE_URL = 'http://ec2-13-245-224-109.af-south-1.compute.amazonaws.com:8080/'; // 替换为您的实际API基础URL |
|
|
|
// 环境变量配置 |
|
export const ENV = { |
|
PRODUCTION: process.env.NODE_ENV === 'production', |
|
DEVELOPMENT: process.env.NODE_ENV !== 'production', |
|
}; |
|
|
|
// API超时配置(ms) |
|
export const API_TIMEOUT = 150000; |
|
|
|
// 本地存储键名 |
|
export const STORAGE_KEYS = { |
|
AUTH_TOKEN: 'auth_token', |
|
USER_INFO: 'user_info', |
|
LANGUAGE: 'app_language', |
|
}; |
|
|
|
// 默认请求头 |
|
export const DEFAULT_HEADERS = { |
|
'Content-Type': 'application/json', |
|
'Accept': 'application/json', |
|
};
|