2025-04-09 18:55:14 +08:00
|
|
|
let API_URL = '';
|
|
|
|
|
|
|
|
|
|
|
|
// #ifdef H5
|
|
|
|
// 开发环境
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
API_URL = '';
|
|
|
|
}
|
|
|
|
// 生产环境
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
API_URL = '';
|
|
|
|
}
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
// #ifdef APP-PLUS
|
|
|
|
// 开发环境
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
2025-05-20 14:40:44 +08:00
|
|
|
API_URL = 'http://8.148.230.89:5000';
|
2025-04-09 18:55:14 +08:00
|
|
|
}
|
|
|
|
// 生产环境
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
2025-05-20 14:40:44 +08:00
|
|
|
API_URL = 'http://8.148.230.89:5000';
|
2025-04-09 18:55:14 +08:00
|
|
|
}
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
export default {
|
|
|
|
API_URL,
|
|
|
|
}
|