28 lines
464 B
TypeScript
28 lines
464 B
TypeScript
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') {
|
|
API_URL = 'http://8.148.230.89:5000';
|
|
}
|
|
// 生产环境
|
|
if (process.env.NODE_ENV === 'production') {
|
|
API_URL = 'http://8.148.230.89:5000';
|
|
}
|
|
// #endif
|
|
|
|
export default {
|
|
API_URL,
|
|
} |