From 9135adf6d12090ac36c7194559de63b91fd4b160 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 12 Jan 2026 11:00:27 +1300 Subject: [PATCH] Fix avatar time spent --- src/components/dialogs/AvatarDialog/AvatarDialog.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/dialogs/AvatarDialog/AvatarDialog.vue b/src/components/dialogs/AvatarDialog/AvatarDialog.vue index d4b3c11c..dad9a762 100644 --- a/src/components/dialogs/AvatarDialog/AvatarDialog.vue +++ b/src/components/dialogs/AvatarDialog/AvatarDialog.vue @@ -701,6 +701,7 @@ function handleDialogOpen() { setAvatarTagsDialog.value.visible = false; + timeSpent.value = 0; memo.value = ''; treeData.value = {}; getAvatarTimeSpent(); @@ -709,6 +710,7 @@ function getAvatarTimeSpent() { const D = avatarDialog.value; + timeSpent.value = 0; database.getAvatarTimeSpent(D.id).then((aviTime) => { if (D.id === aviTime.avatarId) { timeSpent.value = aviTime.timeSpent;