From b0621c04b8c389d08437c7df41c682c1d7c312be Mon Sep 17 00:00:00 2001 From: pa Date: Thu, 20 Nov 2025 16:50:57 +0900 Subject: [PATCH] fix: favorites item after update cannot be displayed correctly --- src/stores/favorite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/favorite.js b/src/stores/favorite.js index 046bccbb..b90d6ecc 100644 --- a/src/stores/favorite.js +++ b/src/stores/favorite.js @@ -1,4 +1,4 @@ -import { computed, reactive, ref, toRaw, watch } from 'vue'; +import { computed, reactive, ref, shallowReactive, watch } from 'vue'; import { ElMessage } from 'element-plus'; import { defineStore } from 'pinia'; import { useI18n } from 'vue-i18n'; @@ -389,7 +389,7 @@ export const useFavoriteStore = defineStore('Favorite', () => { const favorite = getCachedFavoritesByObjectId(objectId); let ctx = state.favoriteObjects.get(objectId); if (ctx) { - ctx = toRaw(ctx); + ctx = shallowReactive(ctx); } if (typeof favorite !== 'undefined') { let isTypeChanged = false;