feat: update dashboard navigation links; redirect to post page on dashboard access
Some checks failed
Frontend CI / build (push) Failing after 57s

This commit is contained in:
SquidSpirit 2025-10-13 19:45:54 +08:00
parent f63d42304d
commit 9d7a8bd300
2 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@
}); });
const links: DashboardLink[] = [ const links: DashboardLink[] = [
{ label: 'Image', href: '/dashboard/image' },
{ label: 'Post', href: '/dashboard/post' }, { label: 'Post', href: '/dashboard/post' },
{ label: 'Image', href: '/dashboard/image' },
]; ];
</script> </script>

View File

@ -5,6 +5,6 @@ export const load: PageServerLoad = async ({ url }) => {
const { pathname } = url; const { pathname } = url;
if (pathname === '/dashboard') { if (pathname === '/dashboard') {
redirect(302, '/dashboard/image'); redirect(302, '/dashboard/post');
} }
}; };