Skip to content

Commit d2326e0

Browse files
add a redirect to the home route
1 parent e6b89ac commit d2326e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generator/templates/Default/src/router.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export default new Router({
1010
mode: 'history',
1111
base: process.env.BASE_URL,
1212
routes: [
13+
{
14+
path: '',
15+
redirect: {name: 'home'},
16+
},
1317
<%_ if (options.useAuthorisation) { _%>
1418
{
1519
path: '',

0 commit comments

Comments
 (0)