update
This commit is contained in:
@@ -2,11 +2,9 @@ import { ref, computed } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
import {
|
||||
BoltIcon,
|
||||
Cog6ToothIcon,
|
||||
ComputerDesktopIcon,
|
||||
DocumentDuplicateIcon,
|
||||
DocumentTextIcon,
|
||||
FolderArrowDownIcon,
|
||||
FolderOpenIcon,
|
||||
ShieldCheckIcon,
|
||||
} from '@heroicons/vue/24/outline'
|
||||
@@ -252,8 +250,12 @@ export const useMenuStore = defineStore('menu', () => {
|
||||
],
|
||||
},
|
||||
]
|
||||
const sidebarOpen = ref(false)
|
||||
const toggleSidebar = () => (sidebarOpen.value = !sidebarOpen.value)
|
||||
|
||||
|
||||
// expose everything
|
||||
return { navigation }
|
||||
return {
|
||||
navigation,
|
||||
toggleSidebar,
|
||||
sidebarOpen
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user