diff --git a/modules/web/src/components/CatalogItem.vue b/modules/web/src/components/CatalogItem.vue index 881be249f..a77ecba9e 100644 --- a/modules/web/src/components/CatalogItem.vue +++ b/modules/web/src/components/CatalogItem.vue @@ -12,8 +12,6 @@ defineProps(["index", "source", "gotoChapter"]); const store = useBookStore(); -const { catalog } = storeToRefs(store); - const index = computed(() => store.readingBook.index); const isSelected = (idx) => { diff --git a/modules/web/src/components/PopCatalog.vue b/modules/web/src/components/PopCatalog.vue index 56691f3f2..a23a3e920 100644 --- a/modules/web/src/components/PopCatalog.vue +++ b/modules/web/src/components/PopCatalog.vue @@ -5,8 +5,7 @@ style="height: 300px; overflow: auto" :class="{ night: isNight, day: !isNight }" ref="virtualListRef" - :data-key="'index'" - :start="index" + data-key="url" wrap-class="data-wrapper" item-class="cata" :data-sources="catalog" @@ -19,7 +18,6 @@