This commit is contained in:
Lilian 2023-02-28 16:38:14 +01:00 committed by Kilton937342
parent 54e7aa6068
commit 6e62213224

View File

@ -412,6 +412,7 @@
let fade = false; let fade = false;
beforeNavigate((n) => { beforeNavigate((n) => {
if(!n.from || !n.to) return;
console.log('NAVIGATION', n.to.url) console.log('NAVIGATION', n.to.url)
if (fade == false && !!n.to?.url) { if (fade == false && !!n.to?.url) {
fade = true; fade = true;
@ -427,6 +428,7 @@
} }
}); });
afterNavigate((n) => { afterNavigate((n) => {
if(!n.from || !n.to) return;
let oldParcoursId = let oldParcoursId =
n.from?.url.searchParams.get("p") || n.from?.url.searchParams.get("p") ||