This commit is contained in:
HJ 2023-02-21 21:49:23 +08:00
parent 23ea3db2ad
commit eecde8a814
3 changed files with 17 additions and 15 deletions

View File

@ -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/";

View File

@ -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;
})();

View File

@ -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;
})();