fix: 左侧菜单时logo显示小图

This commit is contained in:
TsMask
2023-10-28 15:27:08 +08:00
parent 2012837024
commit 898224b5b1

View File

@@ -190,7 +190,12 @@ document.addEventListener('visibilitychange', function () {
<!--插槽-菜单头--> <!--插槽-菜单头-->
<template #menuHeaderRender> <template #menuHeaderRender>
<RouterLink :to="{ name: 'Index' }" :replace="true"> <RouterLink :to="{ name: 'Index' }" :replace="true">
<template v-if="appStore.logoType === 'icon'"> <template
v-if="
appStore.logoType === 'icon' ||
(proConfig.layout === 'side' && layoutState.collapsed)
"
>
<img <img
class="logo-icon" class="logo-icon"
:src="appStore.getLOGOIcon" :src="appStore.getLOGOIcon"
@@ -203,7 +208,7 @@ document.addEventListener('visibilitychange', function () {
</template> </template>
<template v-if="appStore.logoType === 'brand'"> <template v-if="appStore.logoType === 'brand'">
<img <img
:class="{'logo-brand': proConfig.layout !== 'side'}" :class="{ 'logo-brand': proConfig.layout !== 'side' }"
:src="appStore.getLOGOBrand" :src="appStore.getLOGOBrand"
:alt="t('common.title')" :alt="t('common.title')"
:title="appStore.appName" :title="appStore.appName"