修改项目跳转,路由判断(职站测试服)

master V1.0
yujialong 3 years ago
parent 7c94028972
commit 499d332ae7
  1. 8
      src/views/Home.vue

@ -187,17 +187,19 @@ export default {
this.leavePage()
if(this.projectPermissions){
//
if(location.host.includes('120.78.198.231')){ //
if(location.host.includes('120.78.198.231')){
//
location.href = `http://120.78.198.231/#/ass/list`
}else{
location.href = `http://www.occupationlab.com/#/ass/list`
//
location.href = `http://www.occupationlab.com/#/dashboard#2`
}
}else{
//
if(location.host.includes('120.78.198.231')){
location.href = `http://120.78.198.231/#/station/list`
}else{
location.href = `http://www.occupationlab.com/#/station/list`
location.href = `http://www.occupationlab.com/#/dashboard#1`
}
}
this.$refs.mainindex.getClearTime();

Loading…
Cancel
Save