mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
fix chat metadata
This commit is contained in:
parent
ce9c671816
commit
5f0103dff1
1 changed files with 9 additions and 7 deletions
|
@ -333,13 +333,6 @@ const headerTabs = $computed(() => []);
|
|||
|
||||
onMounted(() => {
|
||||
fetch();
|
||||
definePageMetadata(
|
||||
computed(() => ({
|
||||
title: group != null ? group.name : user?.name,
|
||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
||||
avatar: group != null ? null : user,
|
||||
}))
|
||||
);
|
||||
});
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
|
@ -347,6 +340,15 @@ onBeforeUnmount(() => {
|
|||
document.removeEventListener("visibilitychange", onVisibilitychange);
|
||||
if (scrollRemove) scrollRemove();
|
||||
});
|
||||
|
||||
await fetch();
|
||||
definePageMetadata(
|
||||
computed(() => ({
|
||||
title: group != null ? group.name : user?.name,
|
||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
||||
avatar: group != null ? null : user,
|
||||
}))
|
||||
);
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
Loading…
Add table
Reference in a new issue