diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index 84778bc..6b7f47a 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -112,7 +112,6 @@ \ No newline at end of file diff --git a/src/config/index.js b/src/config/index.js index 3599dd1..031901d 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -2,6 +2,7 @@ import Cookie from 'js-cookie' const url = location.host const isDev = process.env.NODE_ENV === 'development' //是否本地 +const isTest = url.includes('121.37.12.51') //测试服 const isHh = url.includes('10.196.131.73') //是否是河海版本 const isPro = url.includes('occupationlab.com') //是否职站生产 const isZxy = url.includes('izhixinyun.com') //是否智信云 @@ -33,6 +34,10 @@ export default { * @description 是否本地 */ isDev, + /** + * @description 测试服 + */ + isTest, /** * @description 是否是河海版本 */ diff --git a/src/views/Home.vue b/src/views/Home.vue index a2b1271..9a4153c 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -214,7 +214,7 @@ export default { `http://${location.hostname}:8082/#/` : `${location.origin}${this.fromManager ? '/admin' : - (this.$config.isPro || this.$config.isZxy) ? + (!this.$config.isTest) ? '' : '/student'}/#/` // 考核