diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js b/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js index 7e882f7..cfd3eca 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js +++ b/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js @@ -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/"; diff --git a/src/main/resources/static/linfeng-community-vue/static/config/index-prod.js b/src/main/resources/static/linfeng-community-vue/static/config/index-prod.js index b6aad70..70e6003 100644 --- a/src/main/resources/static/linfeng-community-vue/static/config/index-prod.js +++ b/src/main/resources/static/linfeng-community-vue/static/config/index-prod.js @@ -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; })(); diff --git a/src/main/resources/static/linfeng-community-vue/static/config/index.js b/src/main/resources/static/linfeng-community-vue/static/config/index.js index b48553c..1add68f 100644 --- a/src/main/resources/static/linfeng-community-vue/static/config/index.js +++ b/src/main/resources/static/linfeng-community-vue/static/config/index.js @@ -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; })();