From 4f87b7178ef421199b18af484dd6a06f8d01da1d Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Mon, 31 Jul 2023 22:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=85=A8=E8=BD=AChttps?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE,=E5=8E=BB=E9=99=A4=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E9=A2=84=E8=A7=88=E9=93=BE=E6=8E=A5=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=88=90=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=A2=84=E8=A7=88=E5=9B=BE(=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E6=9B=B4=E6=96=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DashBoard.vue | 3 +- src/components/HentaiSearch.vue | 4 +-- src/components/OnlineReader.vue | 24 ++++++++------ src/components/Side.vue | 26 ++++++++------- src/store/index.js | 57 +++++---------------------------- 5 files changed, 40 insertions(+), 74 deletions(-) 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(){