index.vue 267 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <script lang="ts" setup name="AuthAll"> const props = defineProps<{ value: string[] }>() function check() { return useAuth().authAll(props.value) } </script> <template> <div> <slot v-if="check()" /> <slot v-else name="no-auth" /> </div> </template>