fix: 左侧菜单时logo显示小图
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user