diff --git a/src/components/Topbar/Topbar.vue b/src/components/Topbar/Topbar.vue index 20d133dc..73b0e55b 100644 --- a/src/components/Topbar/Topbar.vue +++ b/src/components/Topbar/Topbar.vue @@ -64,12 +64,16 @@ watch( }, ) -// watch(showFavoritesPop, (newVal, oldVal) => { -// if (newVal === oldVal) -// return -// if (newVal && favoritesPopRef.value) -// favoritesPopRef.value.refreshFavoriteResources() -// }) +watch(showFavoritesPop, (newVal, oldVal) => { + if (newVal === oldVal) + return + if (newVal) { + nextTick(() => { + if (favoritesPopRef.value) + favoritesPopRef.value.refreshFavoriteResources() + }) + } +}) onMounted(() => { initData() @@ -370,7 +374,6 @@ async function getTopbarNewMomentsCount() {