diff --git a/src/components/PageMain/index.vue b/src/components/PageMain/index.vue index 9f2cc921..84a24091 100644 --- a/src/components/PageMain/index.vue +++ b/src/components/PageMain/index.vue @@ -14,8 +14,9 @@ const props = defineProps({ } }) -const collaspeData = ref(props.collaspe) +const titleSlot = !!useSlots().title +const collaspeData = ref(props.collaspe) function unCollaspe() { collaspeData.value = false } @@ -30,7 +31,10 @@ function unCollaspe() { 'height': collaspeData ? height : '' }" > -