diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index 6af8f3d..e6f0feb 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -38,13 +38,14 @@
里站搜索 查看标签 -
+
{{thumbnailGallery.shortName}}
标签:{{thumbnailGallery.tag}}

- +
@@ -277,6 +278,14 @@ function postTask(){ } //查询任务 +function queryRemoteTask(){ + if(!validateLink(param.value)){ + ElMessage("链接错误") + return + } + let tempLink = coverLink(param.value) + store.dispatch("queryGalleryTask", tempLink) +} function queryLocalTask(){ switch (type.value){ case "link": diff --git a/src/components/HentaiSearch.vue b/src/components/HentaiSearch.vue index bb0c620..30b849f 100644 --- a/src/components/HentaiSearch.vue +++ b/src/components/HentaiSearch.vue @@ -85,8 +85,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, props.currentLinks.length) - 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 @@ -32,7 +32,7 @@ function alterPage(){ //跳转到对应页数 function jump(targetIndex){ - links.value = props.currentLinks.slice(targetIndex * lengthPerPage.value, (targetIndex + 1) * lengthPerPage.value) + links.value = props.currentGallery.images.slice(targetIndex * lengthPerPage.value, (targetIndex + 1) * lengthPerPage.value) index.value = targetIndex temp_index.value = targetIndex + 1 onlineReadingScrollbar.value.setScrollTop(0) @@ -44,16 +44,17 @@ function closeDialog(){