mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-22 03:06:38 +08:00
11 lines
249 B
Vue
11 lines
249 B
Vue
<script lang="ts" setup>
|
|
import { hasPermission } from "@/directives/permission";
|
|
defineProps<{
|
|
permission: string | string[] | true;
|
|
}>();
|
|
</script>
|
|
<template>
|
|
<slot v-if="hasPermission(permission)" />
|
|
<slot v-else name="none" />
|
|
</template>
|