diff --git a/packages/client/src/components/global/MkPageHeader.vue b/packages/client/src/components/global/MkPageHeader.vue index 7b26fcb..ac19419 100644 --- a/packages/client/src/components/global/MkPageHeader.vue +++ b/packages/client/src/components/global/MkPageHeader.vue @@ -267,7 +267,7 @@ onMounted(() => { await document.fonts.ready; if (props.tab == null) return; if (!isTabs(props.tabs)) return; - if (props.tab === "home") { + if (props.tab === "home" && location.pathname === "/") { emit("update:tab", "social"); } const tabEl = tabRefs[props.tab]; diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 54c2631..2498352 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -196,9 +196,7 @@ async function chooseAntenna(ev: MouseEvent) { }); } -function saveSrc( - newSrc: "home" | "local" | "social" | "recommended" | "global", -): void { +function saveSrc(newSrc: "social" | "local" | "global"): void { defaultStore.set("tl", { ...defaultStore.state.tl, src: newSrc,