✨ Setup drive dashboard
This commit is contained in:
@@ -34,7 +34,12 @@ const router = createRouter({
|
||||
name: 'me',
|
||||
component: () => import('../views/accounts/me.vue'),
|
||||
meta: { requiresAuth: true }
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/:notFound(.*)',
|
||||
name: 'errorNotFound',
|
||||
component: () => import('../views/not-found.vue'),
|
||||
},
|
||||
]
|
||||
})
|
||||
|
||||
|
16
DysonNetwork.Pass/Client/src/views/not-found.vue
Normal file
16
DysonNetwork.Pass/Client/src/views/not-found.vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<section class="h-full flex items-center justify-center">
|
||||
<n-result status="404" title="404" description="Page not found">
|
||||
<template #footer>
|
||||
<n-button @click="router.push('/')">Go to Home</n-button>
|
||||
</template>
|
||||
</n-result>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { NResult, NButton } from 'naive-ui'
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter()
|
||||
</script>
|
Reference in New Issue
Block a user