File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
generator/templates/Default/src Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div class =" text-xs-center" >
3+ <h1 >
4+ Pagina niet gevonden
5+ </h1 >
6+ <div class =" my-5 title" >De pagina die u probeert te bereiken is niet gevonden</div >
7+ <v-btn color =" primary" @click =" home" >Terug naar de startpagina</v-btn >
8+ </div >
9+ </template >
10+
11+ <script >
12+
13+ export default {
14+ name: ' page-not-found' ,
15+ data () {
16+ return {};
17+ },
18+ methods: {
19+ home () {
20+ this .$router .push ({name: ' home' });
21+ }
22+ },
23+ };
24+ </script >
25+
26+ <style scoped lang="scss">
27+
28+ </style >
Original file line number Diff line number Diff line change @@ -71,6 +71,14 @@ export default new Router({
7171 component : ( ) => import ( './views/UserResource.vue' )
7272 } ,
7373 < % _ } _ % >
74-
74+ {
75+ path : '/404' ,
76+ name : '404' ,
77+ component : ( ) => import ( './views/PageNotFound.vue' ) ,
78+ } ,
79+ {
80+ path : '*' ,
81+ redirect : '/404'
82+ } ,
7583 ] ,
7684} ) ;
You can’t perform that action at this time.
0 commit comments