diff --git a/components/nav/Secondary.vue b/components/nav/Secondary.vue index c471d67..9c47b47 100644 --- a/components/nav/Secondary.vue +++ b/components/nav/Secondary.vue @@ -2,6 +2,7 @@ export interface NavSecondaryItem { label: string to: string + external?: boolean } @@ -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 }} diff --git a/pages/course/prep/config.ts b/pages/course/prep/config.ts index dc9e17d..789be6c 100644 --- a/pages/course/prep/config.ts +++ b/pages/course/prep/config.ts @@ -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, + }, ]