Skip to content

Commit

Permalink
close navigation bar after changing route
Browse files Browse the repository at this point in the history
  • Loading branch information
powerpaul17 committed Oct 9, 2024
1 parent 141873c commit 5ce9293
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
</style>

<script setup lang="ts">
import { provide, ref } from 'vue';
import { provide, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import type { useScroll } from '@vueuse/core';
import { vScroll } from '@vueuse/components';
Expand All @@ -86,6 +87,8 @@
import { ImportExportPlugin } from './plugins/ImportExportPlugin';
const route = useRoute();
// instantiate plugins after everything else
const pluginManager = new PluginManager(new ImportExportPlugin());
Expand All @@ -100,4 +103,8 @@
}
const menuOpen = ref(false);
watch(route, () => {
menuOpen.value = false;
});
</script>

0 comments on commit 5ce9293

Please sign in to comment.