diary/today'
'
This commit is contained in:
parent
85552e0f3f
commit
4bad3fff5b
2 changed files with 10 additions and 1 deletions
9
src/routes/(app)/diary/today/+page.svelte
Normal file
9
src/routes/(app)/diary/today/+page.svelte
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import { goto } from '$app/navigation';
|
||||||
|
import { today } from '$lib/utils/date';
|
||||||
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
goto(`/diary/${today()}`, { replaceState: true });
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
@ -28,7 +28,7 @@ export default defineConfig({
|
||||||
background_color: '#09090b',
|
background_color: '#09090b',
|
||||||
display: 'standalone',
|
display: 'standalone',
|
||||||
orientation: 'portrait',
|
orientation: 'portrait',
|
||||||
start_url: '/',
|
start_url: '/diary/today',
|
||||||
id: '/',
|
id: '/',
|
||||||
categories: ['health', 'food'],
|
categories: ['health', 'food'],
|
||||||
icons: [
|
icons: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue