mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
refactor
This commit is contained in:
parent
ad8309b51a
commit
512b9a25d7
1 changed files with 4 additions and 12 deletions
|
@ -275,18 +275,10 @@ function onVisibilitychange() {
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetch();
|
fetch();
|
||||||
if (group != null) {
|
|
||||||
definePageMetadata(computed(() => ({
|
definePageMetadata(computed(() => ({
|
||||||
title: group.name,
|
title: group != null ? group.name : user?.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 a new issue