fix(dock): navigation to other pages fails outside homepage

This commit is contained in:
Hakadao
2025-01-26 05:56:13 +08:00
parent a2c9a6530b
commit 7e35a53ccb

View File

@@ -161,6 +161,9 @@ function handleDockItemClick(dockItem: DockItem) {
if (dockItem.useOriginalBiliPage) {
// It seem like the `activatedPage` watcher above will handle this, so no need to set iframePageURL.value here
// iframePageURL.value = dockItem.url
if (!isHomePage()) {
location.href = `https://www.bilibili.com/?page=${dockItem.page}`
}
}
else {
if (isHomePage()) {