diff --git a/src/components/dialogs/AvatarDialog/AvatarDialog.vue b/src/components/dialogs/AvatarDialog/AvatarDialog.vue index 9fcaaba5..a8835788 100644 --- a/src/components/dialogs/AvatarDialog/AvatarDialog.vue +++ b/src/components/dialogs/AvatarDialog/AvatarDialog.vue @@ -468,8 +468,8 @@
{{ t('dialog.avatar.info.time_spent') }} - - - {{ timeToText(timeSpent) }} + - + {{ timeToText(avatarDialog.timeSpent) }}
@@ -615,7 +615,6 @@ const previousImageUrl = ref(''); const treeData = ref({}); - const timeSpent = ref(0); const memo = ref(''); const setAvatarTagsDialog = ref({ visible: false, @@ -707,7 +706,7 @@ function handleDialogOpen() { setAvatarTagsDialog.value.visible = false; - timeSpent.value = 0; + avatarDialog.value.timeSpent = 0; memo.value = ''; treeData.value = {}; getAvatarTimeSpent(); @@ -716,12 +715,12 @@ function getAvatarTimeSpent() { const D = avatarDialog.value; - timeSpent.value = 0; + avatarDialog.value.timeSpent = 0; database.getAvatarTimeSpent(D.id).then((aviTime) => { if (D.id === aviTime.avatarId) { - timeSpent.value = aviTime.timeSpent; + avatarDialog.value.timeSpent = aviTime.timeSpent; if (D.id === currentUser.value.currentAvatar && currentUser.value.$previousAvatarSwapTime) { - timeSpent.value += Date.now() - currentUser.value.$previousAvatarSwapTime; + avatarDialog.value.timeSpent += Date.now() - currentUser.value.$previousAvatarSwapTime; } } }); @@ -740,7 +739,9 @@ const D = avatarDialog.value; switch (command) { case 'Refresh': - showAvatarDialog(D.id); + const avatarId = D.id; + D.id = ''; + showAvatarDialog(avatarId); break; case 'Share': copyAvatarUrl(D.id); diff --git a/src/components/dialogs/GroupDialog/GroupDialog.vue b/src/components/dialogs/GroupDialog/GroupDialog.vue index 68e142a6..f1543e62 100644 --- a/src/components/dialogs/GroupDialog/GroupDialog.vue +++ b/src/components/dialogs/GroupDialog/GroupDialog.vue @@ -1532,7 +1532,9 @@ showInviteGroupDialog(D.id, ''); break; case 'Refresh': - showGroupDialog(D.id); + const groupId = D.id; + D.id = ''; + showGroupDialog(groupId); break; case 'Leave Group': leaveGroupPrompt(D.id); diff --git a/src/components/dialogs/UserDialog/UserDialog.vue b/src/components/dialogs/UserDialog/UserDialog.vue index d546de4d..532194f0 100644 --- a/src/components/dialogs/UserDialog/UserDialog.vue +++ b/src/components/dialogs/UserDialog/UserDialog.vue @@ -553,7 +553,7 @@ {{ - t('dialog.user.groups.total_count', { count: userGroups.groups.length }) + t('dialog.user.groups.total_count', { count: userDialog.userGroups.groups.length }) }}