.env.development | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
.env.production | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/config/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/utils/request.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
.env.development
@@ -1,7 +1,7 @@ NODE_ENV=development # VUE_APP_API_BASE_URL=http://192.168.1.118:3000 # VUE_APP_API_BASE_URL=http://195.0.1.10:6099 VUE_APP_API_BASE_URL=http://192.168.1.27:9999 VUE_APP_API_BASE_URL=http://127.0.0.1:9999/jeecg-boot # VUE_APP_API_BASE_URL=http://127.0.0.1:9999 # VUE_APP_API_BASE_URL=http://195.0.1.10:8099 VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas .env.production
@@ -2,6 +2,6 @@ # VUE_APP_API_BASE_URL=http://195.0.1.10:8099 # VUE_APP_API_BASE_URL=http://195.0.1.10:6099 # VUE_APP_API_BASE_URL=http://192.168.124.123:9999 VUE_APP_API_BASE_URL=http://172.16.99.3:6099 VUE_APP_API_BASE_URL=http://172.16.99.3:6099/jeecg-boot VUE_APP_CAS_BASE_URL=http://localhost:8888/cas VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview1p src/config/index.js
@@ -2,9 +2,9 @@ import Vue from 'vue' //设置全局API_BASE_URL Vue.prototype.API_BASE_URL = window._CONFIG.VUE_APP_API_BASE_URL?window._CONFIG.VUE_APP_API_BASE_URL:process.env.VUE_APP_API_BASE_URL window._CONFIG['domianURL'] = '/jeecg-boot' window._CONFIG['domianURL'] = Vue.prototype.API_BASE_URL //单点登录地址 window._CONFIG['casPrefixUrl'] = window._CONFIG.VUE_APP_CAS_BASE_URL?window._CONFIG.VUE_APP_CAS_BASE_URL:process.env.VUE_APP_CAS_BASE_URL window._CONFIG['onlinePreviewDomainURL'] = window._CONFIG.VUE_APP_ONLINE_BASE_URL?window._CONFIG.VUE_APP_ONLINE_BASE_URL:process.env.VUE_APP_ONLINE_BASE_URL window._CONFIG['staticDomainURL'] = '/jeecg-boot/sys/common/static' window._CONFIG['pdfDomainURL'] = '/jeecg-boot/sys/common/pdf/pdfPreviewIframe' window._CONFIG['staticDomainURL'] = Vue.prototype.API_BASE_URL + '/sys/common/static' window._CONFIG['pdfDomainURL'] = Vue.prototype.API_BASE_URL+ '/sys/common/pdf/pdfPreviewIframe' src/utils/request.js
@@ -11,7 +11,7 @@ * 则映射后端域名,通过 vue.config.js * @type {*|string} */ let apiBaseUrl = "/jeecg-boot"; let apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot"; //console.log("apiBaseUrl= ",apiBaseUrl) // 创建 axios 实例 const service = axios.create({