mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 06:50:51 +00:00
25 lines
561 B
Vue
25 lines
561 B
Vue
<template>
|
|
<el-header class="layout-header" :height="setHeaderHeight">
|
|
<NavBarsIndex />
|
|
</el-header>
|
|
</template>
|
|
|
|
<script>
|
|
import NavBarsIndex from '@/layout/navBars/index.vue';
|
|
export default {
|
|
name: 'layoutHeader',
|
|
components: { NavBarsIndex },
|
|
data() {
|
|
return {};
|
|
},
|
|
computed: {
|
|
// 设置顶部 header 的具体高度
|
|
setHeaderHeight() {
|
|
let { isTagsview, layout } = this.$store.state.themeConfig.themeConfig;
|
|
if (isTagsview && layout !== 'classic') return '84px';
|
|
else return '50px';
|
|
},
|
|
},
|
|
};
|
|
</script>
|