|
|
|
@ -19,13 +19,13 @@ const signOut = () => {
|
|
|
|
|
navigateTo('/signin') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const sidebarOpen = computed({ |
|
|
|
|
const sidebarCollapsed = computed({ |
|
|
|
|
get: () => !$state.sidebarOpen.value, |
|
|
|
|
set: (val) => ($state.sidebarOpen.value = !val), |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const toggleSidebar = () => { |
|
|
|
|
sidebarOpen.value = !sidebarOpen.value |
|
|
|
|
sidebarCollapsed.value = !sidebarCollapsed.value |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
@ -84,7 +84,7 @@ const toggleSidebar = () => {
|
|
|
|
|
|
|
|
|
|
<a-layout> |
|
|
|
|
<a-layout-sider |
|
|
|
|
v-model:collapsed="sidebarOpen" |
|
|
|
|
v-model:collapsed="sidebarCollapsed" |
|
|
|
|
width="300" |
|
|
|
|
collapsed-width="0" |
|
|
|
|
class="bg-white dark:!bg-gray-800 border-r-1 border-gray-200 dark:!border-gray-600 h-full" |
|
|
|
|