feat: add 微课视频 外链
Some checks failed
CI / lint (push) Failing after 59s
CI / test (push) Failing after 3m35s

This commit is contained in:
Timothy Yin 2025-05-05 22:49:41 +08:00
parent b1e91c9c3e
commit 03fb3e38ae
Signed by: HoshinoSuzumi
GPG Key ID: 4052E565F04B122A
2 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,7 @@
export interface NavSecondaryItem {
label: string
to: string
external?: boolean
}
</script>
@ -68,6 +69,8 @@ const isCurrentPath = (path: string) => {
'text-neutral-400 dark:text-neutral-500': !isCurrentPath(nav.to),
}"
:to="nav.to"
:external="nav.external"
:target="nav.external ? '_blank' : undefined"
>
{{ nav.label }}
</NuxtLink>

View File

@ -13,8 +13,9 @@ export const nav: NavSecondaryItem[] = [
label: 'AI 出题',
to: '/course/prep/quiz',
},
// {
// label: '微视频制作',
// to: '/course/prep/test',
// },
{
label: '微视频制作',
to: 'https://dh.fenshenzhike.com/',
external: true,
},
]