From 1881e511a00d172f263b9ddae2b3724e0de8f789 Mon Sep 17 00:00:00 2001 From: HidemaruOwO Date: Mon, 26 Aug 2024 00:40:39 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20issue=20preventing=20the?= =?UTF-8?q?=20profile=20page=20from=20opening=20(packages/client/src/compo?= =?UTF-8?q?nents/global/MkPageHeader.vue,=20packages/client/src/pages/time?= =?UTF-8?q?line.vue)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/client/src/components/global/MkPageHeader.vue | 2 +- packages/client/src/pages/timeline.vue | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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,