🐛 fix (error): conditionally render error page based on authentication

This commit is contained in:
Abizrh
2025-08-13 10:17:34 +07:00
parent db9a87d825
commit ccb249cbe8
2 changed files with 5 additions and 4 deletions
+4 -1
View File
@@ -2,10 +2,13 @@
definePageMeta({
layout: 'blank',
})
const { isAuthenticated } = useUserStore()
</script>
<template>
<PubBaseError :status-code="401" />
<PubBaseError v-if="!isAuthenticated" :status-code="401" />
<PubBaseError v-else :status-code="404" />
</template>
<style scoped></style>