Fix select avatar

This commit is contained in:
Natsumi
2025-07-16 07:31:38 +12:00
parent 4b7ebfc1eb
commit 0ab0378678
6 changed files with 25 additions and 34 deletions
+7 -7
View File
@@ -610,16 +610,15 @@ export const useAvatarStore = defineStore('Avatar', () => {
});
return;
}
avatarRequest
return avatarRequest
.selectAvatar({
avatarId: id
})
.then((args) => {
new Noty({
type: 'success',
text: 'Avatar changed via launch command'
}).show();
return args;
.then(() => {
$app.$message({
message: 'Avatar changed',
type: 'success'
});
});
}
@@ -722,6 +721,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
getAvatarName,
lookupAvatars,
selectAvatarWithConfirmation,
selectAvatarWithoutConfirmation,
showAvatarAuthorDialog,
addAvatarWearTime
};