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