Fix avatar time spent

This commit is contained in:
Natsumi
2026-01-12 11:00:27 +13:00
parent ae724f7733
commit 9135adf6d1

View File

@@ -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;