|
|
|
@ -1,13 +1,15 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex header"> |
|
|
|
|
<p>{{$config.title}}</p> |
|
|
|
|
<img v-if="$config.isHh" src="../assets/img/logo-hh.png" alt="" class="logo"> |
|
|
|
|
<p v-else>{{$config.title}}</p> |
|
|
|
|
<div class="bt"> |
|
|
|
|
<el-button type="primary" @click="back()">退出实验</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="flex center"> |
|
|
|
|
<p v-if="$config.isHh" style="font-size: 18px">{{$config.title}}</p> |
|
|
|
|
<p>编程语言</p> |
|
|
|
|
<el-input placeholder="请输入内容" v-model="value" :disabled="true"></el-input> |
|
|
|
|
</div> |
|
|
|
@ -111,7 +113,7 @@ export default { |
|
|
|
|
? parseInt(sessionStorage.getItem("timer")) |
|
|
|
|
: 0, |
|
|
|
|
codeKey: 1, |
|
|
|
|
host: location.host.includes('liuwanr.cn') ? 'http://www.liuwanr.cn/' : 'http://www.occupationlab.com/' |
|
|
|
|
host: this.$config.host |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
components: { |
|
|
|
@ -187,17 +189,9 @@ export default { |
|
|
|
|
back() { |
|
|
|
|
this.leavePage() |
|
|
|
|
if(this.projectPermissions){ |
|
|
|
|
if(location.host.includes('liuwanr.cn')){ |
|
|
|
|
location.href = `http://www.liuwanr.cn/#/dashboard#2` |
|
|
|
|
location.href = `${this.host}#/dashboard#2` |
|
|
|
|
}else{ |
|
|
|
|
location.href = `http://www.occupationlab.com/#/dashboard#2` |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if(location.host.includes('liuwanr.cn')){ |
|
|
|
|
location.href = `http://www.liuwanr.cn/#/dashboard#1` |
|
|
|
|
}else{ |
|
|
|
|
location.href = `http://www.occupationlab.com/#/dashboard#1` |
|
|
|
|
} |
|
|
|
|
location.href = `${this.host}#/dashboard#1` |
|
|
|
|
} |
|
|
|
|
this.$refs.mainindex.getClearTime(); |
|
|
|
|
}, |
|
|
|
@ -363,6 +357,10 @@ export default { |
|
|
|
|
justify-content: space-between; |
|
|
|
|
height: 58px; |
|
|
|
|
line-height: 58px; |
|
|
|
|
.logo{ |
|
|
|
|
width: 200px; |
|
|
|
|
margin-left: 10px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//公共类 |
|
|
|
|
p { |
|
|
|
|