refactor
This commit is contained in:
parent
7f2402416b
commit
bff5fb1677
|
@ -275,18 +275,10 @@ function onVisibilitychange() {
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetch();
|
fetch();
|
||||||
if (group != null) {
|
definePageMetadata(computed(() => ({
|
||||||
definePageMetadata(computed(() => ({
|
title: group != null ? group.name : user?.name,
|
||||||
title: group.name,
|
icon: 'ph-chats-teardrop-bold ph-lg',
|
||||||
icon: 'ph-chats-teardrop-bold ph-lg',
|
})));
|
||||||
})));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
definePageMetadata(computed(() => ({
|
|
||||||
title: user.name,
|
|
||||||
icon: 'ph-chats-teardrop-bold ph-lg',
|
|
||||||
})));
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
|
|
Loading…
Reference in New Issue