fix avatarinfo cannot refresh

This commit is contained in:
pa
2026-02-12 11:39:03 +09:00
parent 689549ecab
commit 77f1795697
2 changed files with 6 additions and 5 deletions

View File

@@ -484,7 +484,7 @@ export const useUserStore = defineStore('User', () => {
delete json.currentAvatarThumbnailImageUrl;
}
if (typeof ref === 'undefined') {
ref = {
ref = reactive({
ageVerificationStatus: '',
ageVerified: false,
allowAvatarCopying: false,
@@ -553,7 +553,7 @@ export const useUserStore = defineStore('User', () => {
$moderations: {},
//
...json
};
});
if (locationStore.lastLocation.playerList.has(json.id)) {
// update $location_at from instance join time
const player = locationStore.lastLocation.playerList.get(
@@ -644,12 +644,12 @@ export const useUserStore = defineStore('User', () => {
if (ref.location === 'traveling') {
ref.$location = parseLocation(ref.travelingToLocation);
if (!currentTravelers.has(ref.id) && ref.travelingToLocation) {
const travelRef = ref({
const travelRef = reactive({
created_at: new Date().toJSON(),
...ref
});
currentTravelers.set(ref.id, travelRef.value);
onPlayerTraveling(travelRef.value);
currentTravelers.set(ref.id, travelRef);
onPlayerTraveling(travelRef);
}
} else {
ref.$location = parseLocation(ref.location);