alls
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
var app_url = 'https://cogapitest.scszsj.com';
|
||||
var app_url = 'https://cogapi.scszsj.com';
|
||||
// 如果是本地测试环境
|
||||
if(process.env.NODE_ENV === 'development'){
|
||||
//#ifdef H5
|
||||
app_url = 'https://cogapitest.scszsj.com'; //http://cogapitest.scszsj.com http://gg.com/index.php
|
||||
app_url = 'http://gg.com/index.php'; //http://cogapitest.scszsj.com http://gg.com/index.php
|
||||
//#endif
|
||||
}
|
||||
// 如果是生产环境,h5环境下直接读取url
|
||||
if(process.env.NODE_ENV === 'production'){
|
||||
//#ifdef H5
|
||||
// app_url = window.location.protocol+'//' + window.location.host+'/index.php'; http://cogapitest.scszsj.com https://cogapi.scszsj.com
|
||||
app_url = 'https://cogapitest.scszsj.com';
|
||||
app_url = 'http://gg.com/index.php';
|
||||
//#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user