🛂 Auth guard

This commit is contained in:
2024-08-12 23:51:42 +08:00
parent 6162f8f891
commit 1130e6a574
9 changed files with 33 additions and 38 deletions

View File

@ -43,6 +43,10 @@
</template>
<script setup lang="ts">
definePageMeta({
middleware: ["auth"],
})
const config = useRuntimeConfig()
const auth = useUserinfo()