<template>
  <div class="layout-navbars-container">
    <BreadcrumbIndex />
    <TagsView v-if="setShowTagsView" />
  </div>
</template>

<script lang="ts">
import { computed } from "vue";
import { useStore } from "/@/store/index.ts";
import BreadcrumbIndex from "/@/views/layout/navBars/breadcrumb/index.vue";
import TagsView from "/@/views/layout/navBars/tagsView/tagsView.vue";
export default {
  name: "layoutNavBars",
  components: { BreadcrumbIndex, TagsView },
  setup() {
    const store = useStore();
    // 是否显示 tagsView
    const setShowTagsView = computed(() => {
      let { layout } = store.state.themeConfig;
      return layout !== "classic";
    });
    return {
      setShowTagsView,
    };
  },
};
</script>

<style scoped lang="scss">
.layout-navbars-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
</style>