From 70fc0f8a4d273db9e26d4b22641463ad9ab52120 Mon Sep 17 00:00:00 2001 From: 50l3r <500l3r@gmail.com> Date: Thu, 19 Oct 2023 20:01:42 +0200 Subject: [PATCH] Fix k-help component & menu display --- src/components/feedback/k-help/k-help.vue | 8 +++++++- src/layouts/main/partials/aside/menu.vue | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/feedback/k-help/k-help.vue b/src/components/feedback/k-help/k-help.vue index f413d86..0b75bb1 100644 --- a/src/components/feedback/k-help/k-help.vue +++ b/src/components/feedback/k-help/k-help.vue @@ -11,7 +11,8 @@
- {{ text }} + +
@@ -35,6 +36,11 @@ default: 'seal-question', description: 'Icono' } + }, + setup(_props, { slots }) { + const hasSlot = (name: string) => !!slots[name] + + return { hasSlot } } }) diff --git a/src/layouts/main/partials/aside/menu.vue b/src/layouts/main/partials/aside/menu.vue index e7b64a2..bc8d08a 100644 --- a/src/layouts/main/partials/aside/menu.vue +++ b/src/layouts/main/partials/aside/menu.vue @@ -229,7 +229,7 @@ } const checkRoles = (menu: any) => { - if (menu.auth) return menu.auth + if (menu.auth !== undefined) return !!menu.auth return true }