update
This commit is contained in:
parent
23ea3db2ad
commit
eecde8a814
@ -3,12 +3,12 @@ const shareH5Url = "https://www.linfeng.tech/#/"; //H5分享路径
|
||||
|
||||
|
||||
//本地环境配置
|
||||
// const baseUrl = "localhost:8080";
|
||||
// const domain = 'http://' + baseUrl + "/app/";
|
||||
const baseUrl = "localhost:8080";
|
||||
const domain = 'http://' + baseUrl + "/app/";
|
||||
|
||||
//线上环境配置
|
||||
const baseUrl = "wxapi.linfeng.tech";
|
||||
const domain = 'https://' + baseUrl + "/app/";
|
||||
// const baseUrl = "";
|
||||
// const domain = 'https://' + baseUrl + "/app/";
|
||||
|
||||
|
||||
|
||||
|
@ -1,14 +1,15 @@
|
||||
/**
|
||||
* 生产环境
|
||||
*/
|
||||
;(function () {
|
||||
(function() {
|
||||
window.SITE_CONFIG = {};
|
||||
|
||||
// api接口请求地址
|
||||
window.SITE_CONFIG['baseUrl'] = '';
|
||||
window.SITE_CONFIG["baseUrl"] = "wxapi.linfeng.tech";
|
||||
|
||||
// cdn地址 = 域名 + 版本号
|
||||
window.SITE_CONFIG['domain'] = './'; // 域名
|
||||
window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分)
|
||||
window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
|
||||
window.SITE_CONFIG["domain"] = "./"; // 域名
|
||||
window.SITE_CONFIG["version"] = ""; // 版本号(年月日时分)
|
||||
window.SITE_CONFIG["cdnUrl"] =
|
||||
window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
|
||||
})();
|
||||
|
@ -1,15 +1,16 @@
|
||||
/**
|
||||
* 开发环境
|
||||
*/
|
||||
;(function () {
|
||||
(function() {
|
||||
window.SITE_CONFIG = {};
|
||||
|
||||
// api接口请求地址
|
||||
window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080';
|
||||
// window.SITE_CONFIG['baseUrl'] = '';
|
||||
// window.SITE_CONFIG["baseUrl"] = "http://localhost:8080";
|
||||
window.SITE_CONFIG["baseUrl"] = "wxapi.linfeng.tech";
|
||||
|
||||
// cdn地址 = 域名 + 版本号
|
||||
window.SITE_CONFIG['domain'] = './'; // 域名
|
||||
window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分)
|
||||
window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
|
||||
window.SITE_CONFIG["domain"] = "./"; // 域名
|
||||
window.SITE_CONFIG["version"] = ""; // 版本号(年月日时分)
|
||||
window.SITE_CONFIG["cdnUrl"] =
|
||||
window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user