修改项目跳转,路由判断

master V1.0
yujialong 3 years ago
parent 559e115712
commit adb6a04e1e
  1. 14
      src/views/Home.vue

@ -189,22 +189,16 @@ export default {
this.leavePage()
if(this.projectPermissions){
//
if(location.host.includes('10.196.131.73')) { //
if (this.$config.isBeta) { //
location.href = `http://120.78.198.231/#/ass/list`
} else 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 = `${this.$config.host}#/dashboard#2`
}else{
//
if(location.host.includes('10.196.131.73')) {
location.href = `http://120.78.198.231/#/ass/list`
} else if (location.host.includes('120.78.198.231')) {
if (this.$config.isBeta) {
location.href = `http://120.78.198.231/#/station/list`
} else {
location.href = `http://www.occupationlab.com/#/station/list`
}
location.href = `${this.$config.host}#/dashboard#1`
}
this.$refs.mainindex.getClearTime();
},

Loading…
Cancel
Save