diff --git a/src/components/TopBar/components/FavoritesPop.vue b/src/components/TopBar/components/FavoritesPop.vue index df1f582b..511d8446 100644 --- a/src/components/TopBar/components/FavoritesPop.vue +++ b/src/components/TopBar/components/FavoritesPop.vue @@ -17,12 +17,16 @@ const isLoading = ref(false) const noMoreContent = ref(false) const favoriteVideosWrap = ref() as Ref -const favoritesPageUrl = computed(() => { +const viewAllUrl = computed((): string => { return `//space.bilibili.com/${getUserID()}/favlist?fid=${ activatedMediaId.value }` }) +const playAllUrl = computed((): string => { + return `https://www.bilibili.com/list/ml${activatedMediaId.value}` +}) + watch(activatedMediaId, (newVal: number, oldVal: number) => { if (newVal === oldVal) return @@ -148,12 +152,20 @@ defineExpose({ {{ activatedFavoriteTitle }} - - {{ $t('common.view_all') }} - +
+ + {{ $t('common.play_all') }} + + + {{ $t('common.view_all') }} + +
diff --git a/src/components/TopBar/components/WatchLaterPop.vue b/src/components/TopBar/components/WatchLaterPop.vue index fa80cafc..fa326399 100644 --- a/src/components/TopBar/components/WatchLaterPop.vue +++ b/src/components/TopBar/components/WatchLaterPop.vue @@ -7,6 +7,13 @@ import { isHomePage, removeHttpFromUrl } from '~/utils/main' const watchLaterList = reactive([]) const isLoading = ref() +const viewAllUrl = computed((): string => { + return 'https://www.bilibili.com/watchlater/#/list' +}) +const playAllUrl = computed((): string => { + return 'https://www.bilibili.com/list/watchlater' +}) + onMounted(() => { getAllWatchLaterList() }) @@ -65,12 +72,21 @@ function getAllWatchLaterList() { {{ $t('topbar.watch_later') }} - - {{ $t('common.view_all') }} - + +