Skip to content

Commit 3d13a48

Browse files
committed
Router update for giving the 404 page
1 parent 5517526 commit 3d13a48

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

generator/templates/Default/src/router.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ export default new Router({
6666
component: () => import('./views/UserResource.vue')
6767
},
6868
<%_ } _%>
69-
69+
{
70+
path: '/404',
71+
name: '404',
72+
component: () => import('./views/PageNotFound.vue'),
73+
},
74+
{
75+
path: '*',
76+
redirect: '/404'
77+
},
7078
],
7179
});

0 commit comments

Comments
 (0)