<template>
	<div v-if="appStore.sidebarOpened" class="sidebar-logo">
<!--    logo图片-->
<!--		<el-image class="image" src="./favicon.ico"></el-image>-->
    <el-image class="image" src="./favicon2.ico"></el-image>
<!--    标题-->
<!--		<span class="logo-title"> {{ $t('app.logoText') }}</span>-->
	</div>
	<div v-else class="sidebar-logo sidebar-logo-expend">
		<span>{{ $t('app.miniLogoText') }}</span>
	</div>
</template>

<script setup lang="ts">
import {useAppStore} from '@/store/modules/app'

const appStore = useAppStore()
</script>

<style lang="scss" scoped>
.sidebar-logo {
	width: 230px !important;
	height: var(--theme-header-height);
	line-height: var(--theme-header-height);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: rgb(0 21 41 / 2%) 0 1px 4px;
	color: var(--theme-logo-text-color);
	font-size: 18px;
	.image {
		width: 146px;
		height: 50px;
	}
	.logo-title {
		margin-left: 10px;
	}
}
.sidebar-logo-expend {
	width: 100% !important;
}
</style>
