Merge pull request '#8185 Fix LeftMenu to avoid duplicates' (!952) from 8185-DuplicateLeftMenu into dev
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #952 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
80770b1165
|
@ -22,7 +22,7 @@ const props = defineProps({
|
|||
default: 'main',
|
||||
},
|
||||
});
|
||||
|
||||
const initialized = ref(false);
|
||||
const items = ref([]);
|
||||
const expansionItemElements = reactive({});
|
||||
const pinnedModules = computed(() => {
|
||||
|
@ -61,11 +61,13 @@ const filteredPinnedModules = computed(() => {
|
|||
onMounted(async () => {
|
||||
await navigation.fetchPinned();
|
||||
getRoutes();
|
||||
initialized.value = true;
|
||||
});
|
||||
|
||||
watch(
|
||||
() => route.matched,
|
||||
() => {
|
||||
if (!initialized.value) return;
|
||||
items.value = [];
|
||||
getRoutes();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue