diff --git a/src/assets/img/logo-hh.png b/src/assets/img/logo-hh.png new file mode 100644 index 0000000..4eec715 Binary files /dev/null and b/src/assets/img/logo-hh.png differ diff --git a/src/config/index.js b/src/config/index.js index f9ec7c0..33f936b 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -1,4 +1,13 @@ +const isHh = location.host.includes('10.196.131.73') //是否是河海版本 export default { + /** + * @description 域名切换,liuwan:职站测试环境,occupationlab.com:职站正式环境,10.196.131.73:河海版本 + */ + host: (process.env.NODE_ENV === 'development' || location.host.includes('liuwanr.cn')) ? 'http://www.liuwanr.cn/' : (location.host.includes('10.196.131.73') ? 'http://10.196.131.73/' : 'http://www.occupationlab.com/'), + /** + * @description 是否是河海版本 + */ + isHh, /** * @description 配置显示在浏览器标签的title */ diff --git a/src/utils/api.js b/src/utils/api.js index 6818d93..c856ca9 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -1,11 +1,5 @@ -// let host = 'http://192.168.31.125:8081/python'//林 -// let host = 'http://192.168.31.152:8081/python'//榕 -let host = '' -if(location.host.includes('liuwanr.cn') || process.env.NODE_ENV === 'development'){ - host = 'http://www.liuwanr.cn/python' -}else{ - host = 'http://www.occupationlab.com/python' -} +import config from '@/config' +let host = `${config.host}python` export default { QueryProject: `${host}/python/queryProject`, //项目选择下拉框+项目信息+判分点信息展示 diff --git a/src/views/Home.vue b/src/views/Home.vue index 38e36c8..0115db5 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,13 +1,15 @@