zlpt_app/common/config/domain.js

29 lines
458 B
JavaScript
Raw Normal View History

2023-12-12 14:45:18 +08:00
let baseUrl
let wsUrl
let domain
let headUrl
// #ifdef APP-PLUS
if (process.env.NODE_ENV !== 'production') {
//app 开发环境
baseUrl = '';
wsUrl = '';
domain = '';
} else {
//app 生产环境
baseUrl = '';
wsUrl = '';
domain = '';
}
// #endif
// #ifndef APP-PLUS
baseUrl = process.env.VUE_APP_BASE_URL;
wsUrl = process.env.VUE_APP_WS_URL;
domain = process.env.VUE_APP_DOMAIN_URL;
// #endif
export default {
baseUrl,
wsUrl,
domain,
headUrl,
}