【修复】右键菜单最大化后退出最大化模块菜单丢失问题

pull/172/MERGE
diantu 1 year ago committed by 小诺
parent 4aaa9ec30b
commit 4ebf2a78ef

@ -41,7 +41,7 @@
<MenuUnfoldOutlined v-if="menuIsCollapse" /> <MenuUnfoldOutlined v-if="menuIsCollapse" />
<MenuFoldOutlined v-else /> <MenuFoldOutlined v-else />
</div> </div>
<moduleMenu @switchModule="switchModule" /> <moduleMenu v-if="moduleMenuShow" @switchModule="switchModule" />
<top-bar v-if="!isMobile && breadcrumbOpen" /> <top-bar v-if="!isMobile && breadcrumbOpen" />
</div> </div>
<div class="snowy-header-right"> <div class="snowy-header-right">
@ -134,7 +134,7 @@
<a-layout> <a-layout>
<div id="snowyHeader" class="snowy-header"> <div id="snowyHeader" class="snowy-header">
<div class="snowy-header-left" style="padding-left: 0px"> <div class="snowy-header-left" style="padding-left: 0px">
<moduleMenu @switchModule="switchModule" /> <moduleMenu v-if="moduleMenuShow" @switchModule="switchModule" />
<top-bar v-if="!isMobile && breadcrumbOpen" /> <top-bar v-if="!isMobile && breadcrumbOpen" />
</div> </div>
<div class="snowy-header-right"> <div class="snowy-header-right">
@ -191,6 +191,7 @@
const openKeys = ref([]) const openKeys = ref([])
const onSelectTag = ref(false) const onSelectTag = ref(false)
const moduleMenu = ref([]) const moduleMenu = ref([])
const moduleMenuShow = ref(true)
const doublerowSelectedKey = ref([]) const doublerowSelectedKey = ref([])
const layoutSiderDowbleMenu = ref(true) const layoutSiderDowbleMenu = ref(true)
const currentRoute = ref() const currentRoute = ref()
@ -492,5 +493,9 @@
// 退 // 退
const exitMaximize = () => { const exitMaximize = () => {
document.getElementById('app').classList.remove('main-maximize') document.getElementById('app').classList.remove('main-maximize')
moduleMenuShow.value = false
nextTick(() => {
moduleMenuShow.value = true
})
} }
</script> </script>

Loading…
Cancel
Save