package list from viandwi24
This commit is contained in:
9
plugins/navbar.ts
Normal file
9
plugins/navbar.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
// when page redirect on mobile device, close drawer navbar
|
||||
nuxtApp.hook('page:finish', () => {
|
||||
const showDrawer = useState<boolean>('navbar.showDrawer', () => false)
|
||||
const showOptions = useState<boolean>('navbar.showOptions', () => false)
|
||||
showDrawer.value = false
|
||||
showOptions.value = false
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user