From 03d3ea8dd637f79117852a1efd3a716aebfaeeef Mon Sep 17 00:00:00 2001 From: Sun1090 <1090964491@qq.com> Date: Mon, 15 Jan 2024 15:57:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=AF=E7=94=B1=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4page-container=E7=9A=84?= =?UTF-8?q?=E5=A4=B4=E9=83=A8=E9=9D=A2=E5=8C=85=E5=B1=91=E7=AD=89=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E8=A2=AB=E6=84=8F=E5=A4=96=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page-container/index.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/page-container/index.vue b/src/components/page-container/index.vue index cce0443c..8cb3a487 100644 --- a/src/components/page-container/index.vue +++ b/src/components/page-container/index.vue @@ -30,8 +30,11 @@ onBeforeMount(() => { currentItem.value = getCurrentItem() }) const { contentWidth, hasPageContainer } = useLayoutState() -hasPageContainer.value = true - +onMounted(() => { + setTimeout(() => { + hasPageContainer.value = true + }, 280) +}) onUnmounted(() => { setTimeout(() => { hasPageContainer.value = false @@ -39,7 +42,9 @@ onUnmounted(() => { }) onActivated(() => { - hasPageContainer.value = true + setTimeout(() => { + hasPageContainer.value = true + }, 280) }) onDeactivated(() => { setTimeout(() => {