Skip to content

Commit 9c2154d

Browse files
committed
fix: 修复加入隐私空间未刷新问题
1 parent f7306f8 commit 9c2154d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/renderer/windows/MainWindow/components/ExploreCommon.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,8 +1117,14 @@ const addToFavorites = async (item, index, isPrivacySpace = false) => {
11171117
if (res.success) {
11181118
item.isFavorite = 1
11191119
if (isPrivacySpace) {
1120-
callback = async () => {
1121-
await removeFavorites(item, index)
1120+
if (isFavoritesMenu.value) {
1121+
callback = async () => {
1122+
await removeFavorites(item, index)
1123+
}
1124+
} else {
1125+
callback = async () => {
1126+
await onRefresh(true)
1127+
}
11221128
}
11231129
}
11241130
}

0 commit comments

Comments
 (0)