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 }