diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index e02beec..7744f14 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -45,7 +45,8 @@ {{thumbnailGallery.shortName}}
- + diff --git a/src/components/HentaiSearch.vue b/src/components/HentaiSearch.vue index 3ab82cf..15f9630 100644 --- a/src/components/HentaiSearch.vue +++ b/src/components/HentaiSearch.vue @@ -83,8 +83,8 @@ function close(){
- import {computed, ref, watch} from "vue"; import store from "../store/index.js"; -let props = defineProps(['currentLinks', 'isOnlineReading']) +let props = defineProps(['currentGallery', 'isOnlineReading']) let isShowUp = ref() let onlineReadingScrollbar = ref() let links = ref() @@ -19,12 +19,12 @@ watch(props, (props)=>{ //切换本子 function alterPage(){ - console.log(lengthPerPage.value) - if(props.currentLinks.length > lengthPerPage.value){ - links.value = props.currentLinks.slice(0, lengthPerPage.value) - max.value = Math.ceil(props.currentLinks.length / lengthPerPage.value) + if(props.currentGallery.images.length > lengthPerPage.value){ + links.value = props.currentGallery.images.slice(0, lengthPerPage.value) + max.value = Math.ceil(props.currentGallery.images.length / lengthPerPage.value) }else{ - links.value = props.currentLinks + links.value = props.currentGallery.images + max.value = 0 } index.value = 0 temp_index.value = 1 @@ -45,10 +45,14 @@ function closeDialog(){