feat: add 微课视频 外链
This commit is contained in:
parent
b1e91c9c3e
commit
03fb3e38ae
@ -2,6 +2,7 @@
|
|||||||
export interface NavSecondaryItem {
|
export interface NavSecondaryItem {
|
||||||
label: string
|
label: string
|
||||||
to: string
|
to: string
|
||||||
|
external?: boolean
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -68,6 +69,8 @@ const isCurrentPath = (path: string) => {
|
|||||||
'text-neutral-400 dark:text-neutral-500': !isCurrentPath(nav.to),
|
'text-neutral-400 dark:text-neutral-500': !isCurrentPath(nav.to),
|
||||||
}"
|
}"
|
||||||
:to="nav.to"
|
:to="nav.to"
|
||||||
|
:external="nav.external"
|
||||||
|
:target="nav.external ? '_blank' : undefined"
|
||||||
>
|
>
|
||||||
{{ nav.label }}
|
{{ nav.label }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
@ -13,8 +13,9 @@ export const nav: NavSecondaryItem[] = [
|
|||||||
label: 'AI 出题',
|
label: 'AI 出题',
|
||||||
to: '/course/prep/quiz',
|
to: '/course/prep/quiz',
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// label: '微视频制作',
|
label: '微视频制作',
|
||||||
// to: '/course/prep/test',
|
to: 'https://dh.fenshenzhike.com/',
|
||||||
// },
|
external: true,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user