Update PopCatalog.vue
This commit is contained in:
@@ -79,6 +79,7 @@ const virtualListIndex = computed(() => {
|
|||||||
|
|
||||||
onUpdated(() => {
|
onUpdated(() => {
|
||||||
// dom更新触发ResizeObserver,更新虚拟列表内部的sizes Map
|
// dom更新触发ResizeObserver,更新虚拟列表内部的sizes Map
|
||||||
|
if (!popCataVisible.value) return;
|
||||||
virtualListRef.value.scrollToIndex(virtualListIndex.value);
|
virtualListRef.value.scrollToIndex(virtualListIndex.value);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user