perf: refs #8197 perf

This commit is contained in:
Alex Moreno 2024-12-18 13:04:10 +01:00
parent b54f39f1a0
commit 76b73cc616
1 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ onMounted(
() => (stateStore.leftDrawer = useQuasar().screen.gt.xs ? $props.leftDrawer : false) () => (stateStore.leftDrawer = useQuasar().screen.gt.xs ? $props.leftDrawer : false)
); );
const targetId = 'left-panel';
const teleportRef = ref({}); const teleportRef = ref({});
const hasContent = ref(); const hasContent = ref();
let observer; let observer;
@ -37,7 +36,7 @@ onMounted(() => {
<template> <template>
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256"> <QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">
<QScrollArea class="fit text-grey-8"> <QScrollArea class="fit text-grey-8">
<div :id="targetId" ref="teleportRef"></div> <div id="left-panel" ref="teleportRef"></div>
<LeftMenu v-if="!hasContent" /> <LeftMenu v-if="!hasContent" />
</QScrollArea> </QScrollArea>
</QDrawer> </QDrawer>