diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 415e6f4..700fde9 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -2,6 +2,7 @@ import '../app.css'; let { children } = $props(); import { page } from '$app/stores'; + const currentPath = $derived($page.url.pathname); // import { goto } from '$app/navigation'; // $effect(()=>{ @@ -9,15 +10,61 @@ // // goto("/login") // } // }); + const paths = [ + { + Path: "/ping", + Name: "ping", + }, + { + Path: "/test", + Name: "test", + }, + { + Path: "/test2", + Name: "test2", + } + ] {#if $page.url.pathname != "/login"} -