fix: clearPreferencesAndLogout does not take effect when the preferences button is at the top (#4253)

This commit is contained in:
Li Kui
2024-08-28 09:58:59 +08:00
committed by GitHub
parent 6d24369272
commit c6b9a56b73
5 changed files with 21 additions and 7 deletions

View File

@@ -202,7 +202,10 @@ const headerSlots = computed(() => {
</template>
<!-- 头部区域 -->
<template #header>
<LayoutHeader :theme="theme">
<LayoutHeader
:theme="theme"
@clear-preferences-and-logout="clearPreferencesAndLogout"
>
<template
v-if="!showHeaderNav && preferences.breadcrumb.enable"
#breadcrumb