diff --git a/src/router.js b/src/router.js index 6edaea7..a9ae74a 100644 --- a/src/router.js +++ b/src/router.js @@ -54,6 +54,7 @@ router.beforeEach(async (to, from, next) => { addRegisterRoute(); addForgotPasswordRoute(); addResetPasswordRoute(); + addAuthLoginRoute(); router.addRoute({ path: '/:pathMatch(.*)*', components: { @@ -128,9 +129,24 @@ function addResetPasswordRoute() { }); } +function addAuthLoginRoute() { + if (router.hasRoute('/auth/login')) { + router.removeRoute('/auth/login'); + } + router.addRoute({ + path: '/auth/login', + components: { + default: () => import('./content/authentication/LoginContent.vue'), + rightColumn: loadComponent('ImageContent') + }, + name: 'auth-login' + }); +} + addEditPagesRoute(); addRegisterRoute(); addForgotPasswordRoute(); addResetPasswordRoute(); +addAuthLoginRoute(); export default router;