Files
xiuhuwangqiu/config.js
wangxiaowei 90c54df48b first commit
2025-10-22 22:56:36 +08:00

23 lines
506 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//var app_url = 'http://www.jjj-shop.com';
var app_url = 'https://6548.cn';
// 如果是本地测试环境
if(process.env.NODE_ENV === 'development'){
//#ifdef H5
app_url = '';
//#endif
}
// 如果是生产环境h5环境下直接读取url
if(process.env.NODE_ENV === 'production'){
//#ifdef H5
app_url = window.location.protocol+'//' + window.location.host;
//#endif
}
export default {
/*服务器地址*/
app_url: app_url,
/*appid*/
app_id: 10001,
//h5发布路径
h5_addr: '/h5',
}