feat(dock): always show dock (#1217)

This commit is contained in:
Hakadao
2024-12-30 00:37:33 +08:00
parent c9401aa387
commit df62cef2c6
8 changed files with 42 additions and 19 deletions

View File

@@ -127,9 +127,14 @@ function handleDockItemClick(dockItem: DockItem) {
// iframePageURL.value = dockItem.url
}
else {
nextTick(() => {
changeActivatePage(dockItem.page)
})
if (isHomePage()) {
nextTick(() => {
changeActivatePage(dockItem.page)
})
}
else {
location.href = `https://www.bilibili.com/?page=${dockItem.page}`
}
}
// When not opened in a new tab, change the `activatedPage`
@@ -279,7 +284,7 @@ provide<BewlyAppProvider>('BEWLY_APP', {
pointer-events-none
>
<Dock
v-if="showBewlyPage || iframePageURL"
v-if="settings.alwaysUseDock || (showBewlyPage || iframePageURL)"
pointer-events-auto
:activated-page="activatedPage"
@settings-visibility-change="toggleSettings"