This commit is contained in:
vastxie
2025-05-31 02:28:46 +08:00
parent 0f7adc5c65
commit 86e2eecc1f
1808 changed files with 183083 additions and 86701 deletions

View File

@@ -0,0 +1,20 @@
<script setup lang="ts">
defineOptions({
name: 'Auth',
});
const props = defineProps<{
value: string | string[];
}>();
function check() {
return useAuth().auth(props.value);
}
</script>
<template>
<div>
<slot v-if="check()" />
<slot v-else name="no-auth" />
</div>
</template>