fix(MorePop): cannot switch to other languages

This commit is contained in:
Hakadao
2024-06-24 11:33:46 +08:00
parent 95da18c524
commit e1abff50b2

View File

@@ -5,14 +5,14 @@ import { getUserID, isHomePage } from '~/utils/main'
const { t } = useI18n()
const list = [
const list = computed((): { name: string, url: string, icon: string }[] => [
{ name: t('topbar.notifications'), url: '//message.bilibili.com', icon: 'i-mingcute:notification-line' },
{ name: t('topbar.moments'), url: '//t.bilibili.com/', icon: 'i-tabler:windmill' },
{ name: t('topbar.favorites'), url: `//space.bilibili.com/${getUserID() ?? ''}/favlist`, icon: 'i-mingcute:star-line' },
{ name: t('topbar.history'), url: '//www.bilibili.com/account/history', icon: 'i-mingcute:time-line' },
{ name: t('topbar.watch_later'), url: '//www.bilibili.com/watchlater/#/list', icon: 'i-mingcute:carplay-line' },
{ name: t('topbar.creative_center'), url: '//member.bilibili.com/platform/home', icon: 'i-mingcute:bulb-line' },
]
])
</script>
<template>