Füge Authentifizierungs-Login-Route zum Router hinzu und entferne die bestehende Route, falls vorhanden. Aktualisiere die Router-Konfiguration, um die neue Login-Komponente zu integrieren.

This commit is contained in:
Torsten Schulz (local)
2025-09-24 09:13:09 +02:00
parent 46783b35ea
commit 23ba880286

View File

@@ -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;