diff --git a/src/App.vue b/src/App.vue
index 05d56e6..70ef422 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -111,54 +111,48 @@
class="book-card"
v-if="!book.isCollection && !book.collectionHide && (sortValue === 'hidden' || !book.hiddenBook) && !book.folderHide"
:tabindex="index + 1"
- v-lazy:[index]="loadBookCardContent"
>
-
- {{getDisplayTitle(book)}}
-
- ZH
- {{book.pageCount}}|{{book.filecount}}P
- {{ book.pageCount }}P
-
-
- {{$t('m.re')}}
- {{$t('m.ad')}}
-
- {{book.status}}
-
-
+
{{getDisplayTitle(book)}}
+
+ ZH
+ {{book.pageCount}}|{{book.filecount}}P
+ {{ book.pageCount }}P
+
+
+ {{$t('m.re')}}
+ {{$t('m.ad')}}
+
+ {{book.status}}
+
-
- {{$t('m.collection')}}
- {{book.title}}
-
-
-
-
+
{{$t('m.collection')}}
+
{{book.title}}
+
+
+
@@ -613,7 +607,6 @@ export default defineComponent({
expandNodes: [],
progress: 0,
randomTags: [],
- visibilityMap: {},
// collection
selectCollection: undefined,
selectCollectionObject: {list:[]},
@@ -1665,9 +1658,6 @@ export default defineComponent({
scrollMainPageTop () {
document.getElementsByClassName('book-card-area')[0].scrollTop = 0
},
- loadBookCardContent (index) {
- this.visibilityMap[index] = true
- },
// folder tree
diff --git a/src/main.js b/src/main.js
index f1bdaf3..073eb64 100644
--- a/src/main.js
+++ b/src/main.js
@@ -30,19 +30,4 @@ app.use(createI18n({
legacy: false,
messages
}))
-
-app.directive('lazy', {
- mounted(el, binding) {
- const observer = new IntersectionObserver((entries, observer) => {
- entries.forEach(entry => {
- if (entry.isIntersecting) {
- binding.value(binding.arg)
- observer.unobserve(el)
- }
- })
- })
- observer.observe(el)
- }
-})
-
app.mount('#app')
\ No newline at end of file