refactor(layouts): 为导航菜单数据添加类型定义
This commit is contained in:
@@ -9,7 +9,7 @@ gsap.registerPlugin(ScrollTrigger)
|
||||
const { t } = useI18n()
|
||||
|
||||
// 导航菜单数据配置
|
||||
const navItems = computed(() => [
|
||||
const navItems = computed<Array<{name: string, path: string}>>(() => [
|
||||
{ name: t('nav.home'), path: '/' },
|
||||
{ name: t('nav.studio'), path: '/studio' },
|
||||
{ name: t('nav.work'), path: '/work' },
|
||||
|
||||
Reference in New Issue
Block a user