diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 8bb2a603e..481e2ec12 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -78,13 +78,36 @@ async function getData() { } } const emit = defineEmits(['onFetch']); + +const iconModule = computed(() => route.matched[1].meta.icon); +const toModule = computed(() => + route.matched[1].path.split('/').length > 2 + ? route.matched[1].redirect + : route.matched[1].children[0].redirect +);