diff --git a/src/components/LeftMenu.vue b/src/components/LeftMenu.vue index 6e0ae5907..3bbb5b046 100644 --- a/src/components/LeftMenu.vue +++ b/src/components/LeftMenu.vue @@ -22,7 +22,7 @@ const props = defineProps({ default: 'main', }, }); - +const initialized = ref(false); const items = ref([]); const expansionItemElements = reactive({}); const pinnedModules = computed(() => { @@ -53,11 +53,13 @@ const filteredPinnedModules = computed(() => { onMounted(async () => { await navigation.fetchPinned(); getRoutes(); + initialized.value = true; }); watch( () => route.matched, () => { + if (!initialized.value) return; items.value = []; getRoutes(); },