36 lines
792 B
Vue
Raw Normal View History

2024-05-06 16:36:10 +08:00
<template>
<div class="logo_head">
<img :src="Logo" class="logo" />
<span class="logo_title" v-if="!collapsed">dc admin</span>
</div>
</template>
<script setup lang="ts">
import Logo from "@/assets/img/logo.jpg";
import { storeToRefs } from "pinia";
import { useThemeConfig } from "@/store/modules/theme-config";
const themeStore = useThemeConfig();
const { collapsed } = storeToRefs(themeStore);
</script>
<style lang="scss" scoped>
// 头部
.logo_head {
height: 60px;
display: flex;
justify-content: space-around;
align-items: center;
box-sizing: border-box;
border-right: $border-1 solid $color-border-2;
.logo {
width: 30px;
}
.logo_title {
font-weight: bold;
font-size: $font-size-title-2;
}
}
</style>