🐛 fix issue preventing the profile page from opening (packages/client/src/components/global/MkPageHeader.vue, packages/client/src/pages/timeline.vue)
This commit is contained in:
parent
8488393f83
commit
1881e511a0
2 changed files with 2 additions and 4 deletions
|
@ -267,7 +267,7 @@ onMounted(() => {
|
||||||
await document.fonts.ready;
|
await document.fonts.ready;
|
||||||
if (props.tab == null) return;
|
if (props.tab == null) return;
|
||||||
if (!isTabs(props.tabs)) return;
|
if (!isTabs(props.tabs)) return;
|
||||||
if (props.tab === "home") {
|
if (props.tab === "home" && location.pathname === "/") {
|
||||||
emit("update:tab", "social");
|
emit("update:tab", "social");
|
||||||
}
|
}
|
||||||
const tabEl = tabRefs[props.tab];
|
const tabEl = tabRefs[props.tab];
|
||||||
|
|
|
@ -196,9 +196,7 @@ async function chooseAntenna(ev: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveSrc(
|
function saveSrc(newSrc: "social" | "local" | "global"): void {
|
||||||
newSrc: "home" | "local" | "social" | "recommended" | "global",
|
|
||||||
): void {
|
|
||||||
defaultStore.set("tl", {
|
defaultStore.set("tl", {
|
||||||
...defaultStore.state.tl,
|
...defaultStore.state.tl,
|
||||||
src: newSrc,
|
src: newSrc,
|
||||||
|
|
Reference in a new issue