mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
refactor
This commit is contained in:
parent
ad8309b51a
commit
512b9a25d7
@ -275,18 +275,10 @@ function onVisibilitychange() {
|
||||
|
||||
onMounted(() => {
|
||||
fetch();
|
||||
if (group != null) {
|
||||
definePageMetadata(computed(() => ({
|
||||
title: group.name,
|
||||
icon: 'ph-chats-teardrop-bold ph-lg',
|
||||
})));
|
||||
}
|
||||
else {
|
||||
definePageMetadata(computed(() => ({
|
||||
title: user.name,
|
||||
icon: 'ph-chats-teardrop-bold ph-lg',
|
||||
})));
|
||||
}
|
||||
definePageMetadata(computed(() => ({
|
||||
title: group != null ? group.name : user?.name,
|
||||
icon: 'ph-chats-teardrop-bold ph-lg',
|
||||
})));
|
||||
});
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user