diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index f76f7039..85aec4be 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -63,6 +63,12 @@ const isSearchPage = computed((): boolean => { // 當使用背景時,強制 icon 變白色用於區分背景 const forceWhiteIcon = computed((): boolean => { + if ( + // 分區頁面由於上面有背景,所以強制 icon 變白色用於區分背景 + // channel, anime, chinese anime, tv shows, movie, variety shows, mooc + /https?:\/\/(?:www.)?bilibili.com\/(?:v|anime|guochuang|tv|movie|variety|mooc).*/.test(location.href) + ) + return true if (!isHomePage()) return false if (activatedPage.value === AppPage.Search) { @@ -439,12 +445,12 @@ defineExpose({
- > @@ -491,7 +500,7 @@ defineExpose({
-
+