mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-24 21:40:22 +08:00
19 lines
641 B
Vue
19 lines
641 B
Vue
<template>
|
|
<router-link to="/" class="nowrap-hidden flex-center h-64px">
|
|
<img src="@/assets/img/common/logo.png" alt="" class="w-32px h-32px" />
|
|
<h2 v-show="showTitle" class="pl-8px text-16px text-primary font-bold">{{ title }}</h2>
|
|
</router-link>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { computed } from 'vue';
|
|
import { useAppStore, useThemeStore } from '@/store';
|
|
import { useAppTitle } from '@/hooks';
|
|
|
|
const app = useAppStore();
|
|
const theme = useThemeStore();
|
|
const showTitle = computed(() => !app.menu.collapsed && theme.navStyle.mode !== 'vertical-mix');
|
|
const title = useAppTitle();
|
|
</script>
|
|
<style scoped></style>
|