Skip to content
Snippets Groups Projects
Commit 9f23fef2 authored by moon's avatar moon
Browse files

#100: Added 404 page

parent 8d289589
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,8 @@ export default new Router({
name: 'imprint',
component: () => import('@/views/ImprintPage'),
},
{ path: '/404', component: () => import('@/views/NotFound') },
{ path: '*', redirect: '/404' },
// {
// path: '/test/:protein',
// name: 'test',
......
<template>
<div class="flex flex-wrap justify-center">
<div class="w-5/6">
<h3>Page Not Found</h3>
</div>
</div>
</template>
<script>
export default {
name: 'NotFound',
};
</script>
<style scoped>
@import url("~@/assets/bootstrap.css");
</style>
\ No newline at end of file
......@@ -277,7 +277,7 @@ export default {
vm.preload();
vm.load(vm.user)
} else {
vm.$router.push('/profile')
vm.$router.push('/404')
}
},
methods: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment