Skip to content

Commit

Permalink
fix: 路由切换可能导致page-container的头部面包屑等区域被意外隐藏
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun1090 committed Jan 15, 2024
1 parent 4535f65 commit 03d3ea8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/page-container/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,21 @@ onBeforeMount(() => {
currentItem.value = getCurrentItem()
})
const { contentWidth, hasPageContainer } = useLayoutState()
hasPageContainer.value = true
onMounted(() => {
setTimeout(() => {
hasPageContainer.value = true
}, 280)
})
onUnmounted(() => {
setTimeout(() => {
hasPageContainer.value = false
}, 280)
})
onActivated(() => {
hasPageContainer.value = true
setTimeout(() => {
hasPageContainer.value = true
}, 280)
})
onDeactivated(() => {
setTimeout(() => {
Expand Down

0 comments on commit 03d3ea8

Please sign in to comment.