32 lines
648 B
TypeScript
32 lines
648 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://8.130.121.29:5000';
|
||
|
// API_URL = 'https://jyptapp.com/prod-app';
|
||
|
}
|
||
|
// 生产环境
|
||
|
if (process.env.NODE_ENV === 'production') {
|
||
|
API_URL = 'http://8.130.121.29:5000';
|
||
|
// API_URL = 'https://jyptapp.com/prod-app';
|
||
|
}
|
||
|
// #endif
|
||
|
|
||
|
export default {
|
||
|
API_URL,
|
||
|
}
|