新增下载模式选择;新增下载前查看预览图;去除链接伪装;优化下载完成逻辑判断;仅允许下载里站链接(同步更新)

This commit is contained in:
chuzhongzai
2023-12-21 18:32:03 +08:00
parent 746837659d
commit 85b8a8c2a3
4 changed files with 49 additions and 34 deletions
+4 -9
View File
@@ -56,8 +56,7 @@ function queryRemoteTask(){
ElMessage("链接错误")
return
}
let tempLink = coverLink(param.value)
store.dispatch("queryGalleryTask", tempLink)
store.dispatch("queryGalleryTask", param.value)
}
function validateLink(rawLink){
@@ -69,10 +68,6 @@ function validateLink(rawLink){
return false
}
function coverLink(rawLink){
return rawLink.replace("exhentai.org", "element-plus.org").replace("e-hentai.org", "element.org");
}
function close(){
emit("close")
}
@@ -85,8 +80,8 @@ function close(){
</div>
<el-scrollbar height="75vh" ref="scrollBar">
<div style="height: 251px; width: 100%; " v-for="gallery in galleries">
<el-image alt="picture" :preview-src-list="['https://downloader.lionwebsite.xyz/GalleryManage/ehThumbnail?path=' + gallery.thumbnailUrl.replace('/t', ''),]"
:src="'https://downloader.lionwebsite.xyz/GalleryManage/ehThumbnail?path=' + gallery.thumbnailUrl.replace('/t', '') "
<el-image alt="picture" :preview-src-list="['https://downloader.lionwebsite.xyz/GalleryManage/ehThumbnail?path=' + gallery.thumbnailUrl,]"
:src="'https://downloader.lionwebsite.xyz/GalleryManage/ehThumbnail?path=' + gallery.thumbnailUrl"
style="height:250px;width:250px;float: left;"
fit="contain"
loading="lazy"
@@ -97,7 +92,7 @@ function close(){
<span>页数:{{gallery.page}}</span><br>
<span class="ct6">类型:{{gallery.type}}</span><br>
<a :href="gallery.link">链接</a><br>
<el-button style=" margin-left: 80%; margin-top: -5vh" @click="param=gallery.link; queryRemoteTask()">下载</el-button>
<el-button style=" margin-left: 80%; margin-top: -5vh" @click="param=gallery.link; queryRemoteTask()">查看</el-button>
</div>
</div>
</el-scrollbar>