32 lines
650 B
TypeScript
32 lines
650 B
TypeScript
let API_URL = '';
|
|
|
|
|
|
// #ifdef H5
|
|
// 开发环境
|
|
if (process.env.NODE_ENV === 'development') {
|
|
API_URL = '';
|
|
// API_URL = 'https://jyptapp.com/prod-app';
|
|
}
|
|
// 生产环境
|
|
if (process.env.NODE_ENV === 'production') {
|
|
API_URL = '';
|
|
// API_URL = 'https://jyptapp.com/prod-app';
|
|
}
|
|
// #endif
|
|
|
|
// #ifdef APP-PLUS
|
|
// 开发环境
|
|
if (process.env.NODE_ENV === 'development') {
|
|
API_URL = 'http://58.252.252.77:5000';
|
|
// API_URL = 'https://jyptapp.com/prod-app';
|
|
}
|
|
// 生产环境
|
|
if (process.env.NODE_ENV === 'production') {
|
|
API_URL = 'http://58.252.252.77:5000';
|
|
// API_URL = 'https://jyptapp.com/prod-app';
|
|
}
|
|
// #endif
|
|
|
|
export default {
|
|
API_URL,
|
|
} |