diff --git a/config/prod.env.js b/config/prod.env.js index 90b07c5..f44bbe4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,5 +5,5 @@ // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' BASE_API: '"http://10.18.0.94:8083/callcenter/api"' // BASE_API: '"http://139.198.16.38:20007"' - // BASE_API: '"http://127.0.0.1:20007"' + // BASE_API: '"http://127.0.0.1:8085"' } diff --git a/config/prod.env.js b/config/prod.env.js index 90b07c5..f44bbe4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -5,5 +5,5 @@ // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' BASE_API: '"http://10.18.0.94:8083/callcenter/api"' // BASE_API: '"http://139.198.16.38:20007"' - // BASE_API: '"http://127.0.0.1:20007"' + // BASE_API: '"http://127.0.0.1:8085"' } diff --git a/src/store/modules/user.js b/src/store/modules/user.js index f4f8d4c..48875e6 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -112,7 +112,9 @@ } else { // 判断是开发环境还是生产环境, // 生产环境不存在跳转到公共登陆平台 - if (process.env.NODE_ENV === 'development') { + const BASE_API = process.env.BASE_API + // 如果是开发环境或者不是10.18开头的ip + if (process.env.NODE_ENV === 'development' || BASE_API.search('http://10.18.0.94') !== -1) { reject() } else { const systemName = getProject().type