Added middleware for closing sidebar on route change
This commit is contained in:
5
middleware/sidebar.global.ts
Normal file
5
middleware/sidebar.global.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export default defineNuxtRouteMiddleware(() => {
|
||||||
|
const { closeSidebar } = useUiStore()
|
||||||
|
|
||||||
|
closeSidebar()
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user