1
0

feat: refactor to composable

- using useMediaQuery and useLocalStorage
- remove watcher in contentAuth
This commit is contained in:
Dominik Pschenitschni
2023-02-08 12:56:32 +01:00
parent 99dc5cf34f
commit c502f9b840
3 changed files with 51 additions and 33 deletions

View File

@ -86,9 +86,6 @@ function showKeyboardShortcuts() {
const route = useRoute()
// hide menu on mobile
watch(() => route.fullPath, () => window.innerWidth < 769 && baseStore.setMenuActive(false))
// FIXME: this is really error prone
// Reset the current list highlight in menu if the current route is not list related.
watch(() => route.name as string, (routeName) => {