feat: 更新设置页面布局,添加类型定义以增强代码可读性
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { afterNavigate } from '$app/navigation';
|
import { afterNavigate } from '$app/navigation';
|
||||||
import { currentActivate } from '$lib/stores/navigate';
|
import { currentActivate } from '$lib/stores/navigate';
|
||||||
|
import type { Snippet } from 'svelte';
|
||||||
|
|
||||||
let { children, data }: { data: { activePath: string } } = $props();
|
let { children, data }: { data: { activePath: string }; children: Snippet } = $props();
|
||||||
afterNavigate(() => {
|
afterNavigate(() => {
|
||||||
currentActivate.set('settings');
|
currentActivate.set('settings');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user