Skip to content

Commit e6b89ac

Browse files
optionaly apply guard
1 parent 95cca77 commit e6b89ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generator/templates/Default/src/router.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export default new Router({
4040
<%_ } _%>
4141
{
4242
path: '',
43+
<%_ if (options.useAuthorisation) { _%>
4344
beforeEnter: AuthorisationGuard,
45+
<%_ } _%>
4446
component: () => import('@/templates/Default'),
4547
children: [
4648
{

0 commit comments

Comments
 (0)