fix chat metadata
This commit is contained in:
parent
8491a757bc
commit
63c35871b2
@ -333,13 +333,6 @@ const headerTabs = $computed(() => []);
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetch();
|
fetch();
|
||||||
definePageMetadata(
|
|
||||||
computed(() => ({
|
|
||||||
title: group != null ? group.name : user?.name,
|
|
||||||
icon: "ph-chats-teardrop ph-bold ph-lg",
|
|
||||||
avatar: group != null ? null : user,
|
|
||||||
}))
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
@ -347,6 +340,15 @@ onBeforeUnmount(() => {
|
|||||||
document.removeEventListener("visibilitychange", onVisibilitychange);
|
document.removeEventListener("visibilitychange", onVisibilitychange);
|
||||||
if (scrollRemove) scrollRemove();
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
Reference in New Issue
Block a user