From 4cf80498f9abc946f27a39af2470dd595e122661 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 18 Aug 2021 16:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=80=E5=87=BA=E5=AE=9E?= =?UTF-8?q?=E9=AA=8C=EF=BC=8C=E8=B7=B3=E8=BD=AC=E8=B7=AF=E5=BE=84=E9=94=99?= =?UTF-8?q?=E8=AF=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 48b8031..8d8d76c 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -111,7 +111,6 @@ export default { ? parseInt(sessionStorage.getItem("timer")) : 0, codeKey: 1, - host: location.host.includes('liuwanr.cn') ? 'http://www.liuwanr.cn/' : 'http://www.occupationlab.com/' }; }, components: { @@ -187,16 +186,18 @@ export default { back() { this.leavePage() if(this.projectPermissions){ - if(location.host.includes('liuwanr.cn')){ - location.href = `http://www.liuwanr.cn/#/dashboard#2` + // 返回到考核列表 + if(location.host.includes('120.78.198.231')){ // 判断是否是职站测试服 + location.href = `http://120.78.198.231/#/ass/list` }else{ - location.href = `http://www.occupationlab.com/#/dashboard#2` + location.href = `http://www.occupationlab.com/#/ass/list` } }else{ - if(location.host.includes('liuwanr.cn')){ - location.href = `http://www.liuwanr.cn/#/dashboard#1` + // 返回到实验台 + if(location.host.includes('120.78.198.231')){ + location.href = `http://120.78.198.231/#/station/list` }else{ - location.href = `http://www.occupationlab.com/#/dashboard#1` + location.href = `http://www.occupationlab.com/#/station/list` } } this.$refs.mainindex.getClearTime();