mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
37 lines
938 B
Vue
37 lines
938 B
Vue
<template>
|
|
<div class="layout-navbars-container">
|
|
<BreadcrumbIndex />
|
|
<TagsView v-if="setShowTagsView" />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { computed } from 'vue';
|
|
import { useThemeConfig } from '@/store/themeConfig';
|
|
import BreadcrumbIndex from '@/layout/navBars/breadcrumb/index.vue';
|
|
import TagsView from '@/layout/navBars/tagsView/tagsView.vue';
|
|
export default {
|
|
name: 'layoutNavBars',
|
|
components: { BreadcrumbIndex, TagsView },
|
|
setup() {
|
|
// 是否显示 tagsView
|
|
const setShowTagsView = computed(() => {
|
|
let { layout, isTagsview } = useThemeConfig().themeConfig;
|
|
return layout !== 'classic' && isTagsview;
|
|
});
|
|
return {
|
|
setShowTagsView,
|
|
};
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.layout-navbars-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
</style>
|