diff --git a/public/config/index-prod.js b/public/config/index-prod.js index 94d58e2..6096255 100644 --- a/public/config/index-prod.js +++ b/public/config/index-prod.js @@ -9,14 +9,15 @@ /** * 生产环境 */ -;(function () { +(function () { window.SITE_CONFIG = {}; // 在线api接口请求地址 - window.SITE_CONFIG['baseUrl'] ="http://admin-test.damajishi.cn:8899" + window.SITE_CONFIG["baseUrl"] = "https://admin-test.damajishi.cn/"; // 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/public/config/index.js b/public/config/index.js index 5e4df22..415da64 100644 --- a/public/config/index.js +++ b/public/config/index.js @@ -9,16 +9,18 @@ /** * 开发环境 */ -;(function () { +(function () { window.SITE_CONFIG = {}; // api接口请求地址 - window.SITE_CONFIG['baseUrl'] ="http://admin-test.damajishi.cn:8899" - // 在线api接口请求地址 + window.SITE_CONFIG["baseUrl"] = "https://admin-test.damajishi.cn/"; + // 在线api接口请求地址 // window.SITE_CONFIG['baseUrl'] = 'http://119.29.103.250:8082/red-memory'; - // 在线api接口请求地址 - window.SITE_CONFIG['baseUrlComment'] = 'http://123.60.109.11:8081/red-memory-user'; + // 在线api接口请求地址 + window.SITE_CONFIG["baseUrlComment"] = + "http://123.60.109.11:8081/red-memory-user"; // 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/views/common/login.vue b/src/views/common/login.vue index e9c01ae..b763c0e 100644 --- a/src/views/common/login.vue +++ b/src/views/common/login.vue @@ -13,15 +13,32 @@