refactor(layouts): 为导航菜单数据添加类型定义

This commit is contained in:
2026-04-26 23:09:00 +08:00
parent 1bc881994f
commit 4dbf05555d
@@ -9,7 +9,7 @@ gsap.registerPlugin(ScrollTrigger)
const { t } = useI18n() const { t } = useI18n()
// 导航菜单数据配置 // 导航菜单数据配置
const navItems = computed(() => [ const navItems = computed<Array<{name: string, path: string}>>(() => [
{ name: t('nav.home'), path: '/' }, { name: t('nav.home'), path: '/' },
{ name: t('nav.studio'), path: '/studio' }, { name: t('nav.studio'), path: '/studio' },
{ name: t('nav.work'), path: '/work' }, { name: t('nav.work'), path: '/work' },