Commit 184fb97e by 杨子

适配生成环境

parent 1a471992
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
ENV = 'production' ENV = 'production'
#Jeeplus快速开发平台/后台地址 #Jeeplus快速开发平台/后台地址
VUE_APP_SERVER_URL = 'http:/xxxxxx.com/jeeplus-vue' VUE_APP_SERVER_URL = 'http://helicopter.yqdchina.com/helicopter'
#单点登录设置 #单点登录设置
VUE_APP_SSO_LOGIN = 'false' VUE_APP_SSO_LOGIN = 'false'
VUE_APP_CAS_SERVER = 'https://www.cainiao.com:8443/cas' VUE_APP_CAS_SERVER = 'https://www.cainiao.com:8443/cas'
......
...@@ -74,10 +74,8 @@ const getRandomColor = function(){ ...@@ -74,10 +74,8 @@ const getRandomColor = function(){
} }
const baseUrl = '/task/helicopterTask/getGanttInfo?id='+ sessionStorage.getItem('taskResultId') const baseUrl = '/task/helicopterTask/getGanttInfo?id='+ sessionStorage.getItem('taskResultId')
const url = process.env.NODE_ENV === 'production' ? '/jeeplus-vue'+baseUrl: baseUrl
httpRequest httpRequest
.get(url) .get(baseUrl)
.then(({ data }) => { .then(({ data }) => {
if(!data){ if(!data){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment