|
|
|
@ -8,6 +8,7 @@ import {
|
|
|
|
|
onBeforeMount, |
|
|
|
|
onBeforeUnmount, |
|
|
|
|
onKeyStroke, |
|
|
|
|
onMounted, |
|
|
|
|
openLink, |
|
|
|
|
projectThemeColors, |
|
|
|
|
provide, |
|
|
|
@ -49,7 +50,7 @@ const isLocked = ref(false)
|
|
|
|
|
provide('TreeViewIsLockedInj', isLocked) |
|
|
|
|
|
|
|
|
|
// create a new sidebar state |
|
|
|
|
const { isOpen, toggle } = useSidebar('nc-left-sidebar', { hasSidebar: true, isOpen: true }) |
|
|
|
|
const { isOpen, toggle, toggleHasSidebar } = useSidebar('nc-left-sidebar', { hasSidebar: false, isOpen: false }) |
|
|
|
|
|
|
|
|
|
const dialogOpen = ref(false) |
|
|
|
|
|
|
|
|
@ -162,6 +163,11 @@ onBeforeMount(async () => {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
toggle(true) |
|
|
|
|
toggleHasSidebar(true) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
onBeforeUnmount(reset) |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
@ -481,7 +487,7 @@ onBeforeUnmount(reset)
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<LazyDashboardTreeView v-show="isOpen" /> |
|
|
|
|
<LazyDashboardTreeView /> |
|
|
|
|
</a-layout-sider> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|