diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 6a23af7..ccfefed 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -149,8 +149,8 @@ console.groupEnd(); // Variables globales window.appConfig = { - activeParentId: '= $activeParentId ?>', - activeChildId: '= $activeChildId ?>', + activeParentId: '= $activeParentId ?? "0" ?>', + activeChildId: '= $activeChildId ?? "0" ?>', activeLink: '= $activeLink ?>', racineWeb: '= $racineWeb ?>', baseUrl: '= $racineWeb ?>', @@ -162,6 +162,10 @@ console.groupEnd(); cssOverride: true }; + // Vérification + console.log('PHP: activeParentId =', '= $activeParentId ?>'); + console.log('PHP: activeLink =', '= $activeLink ?>'); + // CORRECTION FORCÉE IMMÉDIATE if (window.appConfig.activeLink === 'Accueil') { console.warn('🔧 Correction: Accueil forcé en menu 0 (était: ' + window.appConfig.activeParentId + ')'); @@ -338,6 +342,10 @@ console.groupEnd();