66 lines
1.8 KiB

4 years ago
<template>
<div class="header">
<div class="inner" style="width: 100%">
<div class="logo" @click="toIndex" style="float: left">
4 years ago
<img src="../../assets/img/logo.png" alt="">
</div>
<div style="float: right;margin:0 60px;font-size: 18px">
<span style="cursor:pointer" @click="exit">
退出<i class="icon el-icon-s-unfold"></i>
</span>
</div>
4 years ago
</div>
</div>
</template>
<script>
import { mapState,mapActions } from 'vuex'
import Setting from '@/setting'
import util from '@/libs/util'
export default {
data() {
return {
token: util.local.get(Setting.tokenKey),
};
},
mounted(){
},
methods: {
toIndex(){
this.$refs.nav.jump({
index: '/index/list',
title: '首页'
})
},
exit(){
let assessmentId = sessionStorage.getItem('assessmentId')
console.log(assessmentId)
if (assessmentId != 'null' && assessmentId != null && assessmentId != ''){
3 years ago
window.location = 'http://39.108.250.202/student/#/ass/list'
}else{
let cid = sessionStorage.getItem('cid')
window.location = 'http://39.108.250.202/student/#/station/preview?courseId='+cid+'&curriculumName=银行项目'
}
},
4 years ago
},
};
</script>
<style lang="scss" scoped>
.header{
3 years ago
width:100%;
4 years ago
display: flex;
align-items: center;
position: relative;
height: 68px;
background-color: #fff;
3 years ago
z-index: 1001;
4 years ago
.logo{
width: 500px;
margin-left: 42px;
cursor: pointer;
img{
width: 100%;
}
}
}
</style>