From 3bc80f1a7e829d1fae0f7f07739ce87ca5d6fbbf Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Mon, 22 Apr 2024 14:17:51 +0800 Subject: [PATCH] fix: i18n for channel --- src/components/TopBar/components/ChannelsPop.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TopBar/components/ChannelsPop.vue b/src/components/TopBar/components/ChannelsPop.vue index bd48dbb4..1805dba6 100644 --- a/src/components/TopBar/components/ChannelsPop.vue +++ b/src/components/TopBar/components/ChannelsPop.vue @@ -4,7 +4,7 @@ import { isHomePage } from '~/utils/main' const { t } = useI18n() -const genres = [ +const genres = computed(() => [ { name: t('topbar.logo_dropdown.anime'), icon: '#channel-anime', href: 'https://www.bilibili.com/anime' }, { name: t('topbar.logo_dropdown.movies'), icon: '#channel-movie', href: 'https://www.bilibili.com/movie' }, { name: t('topbar.logo_dropdown.chinese_anime'), icon: '#channel-guochuang', href: 'https://www.bilibili.com/guochuang' }, @@ -39,7 +39,7 @@ const genres = [ { name: t('topbar.logo_dropdown.paid_courses'), icon: '#channel-zhishi', href: 'https://www.bilibili.com/cheese' }, { name: t('topbar.logo_dropdown.community'), icon: '#channel-blackroom', href: 'https://www.bilibili.com/blackboard/activity-5zJxM3spoS.html' }, { name: t('topbar.logo_dropdown.music_plus'), icon: '#channel-musicplus', href: 'https://www.bilibili.com/v/musicplus' }, -] +])