修复缩略图预览;优化下载链接;(同步更新)
This commit is contained in:
parent
76d8b748ca
commit
4089341073
@ -40,13 +40,13 @@
|
||||
<el-button @click="isViewingTag = true">查看标签</el-button>
|
||||
<hr>
|
||||
<el-button v-if="isLion" @click="resetUndone">重置任务</el-button>
|
||||
<div v-show="'images' in thumbnailGallery">
|
||||
<div v-show="thumbnailGallery.url !== undefined">
|
||||
<span>
|
||||
{{thumbnailGallery.shortName}}<br>
|
||||
<el-space v-show="thumbnailGallery.tag !== ''">标签:{{thumbnailGallery.tag}}</el-space>
|
||||
</span><br>
|
||||
<picture>
|
||||
<el-image :src="thumbnailGallery.url" :preview-src-list="thumbnailGallery.images" :initial-index="0" class="preview"
|
||||
<el-image :src="thumbnailGallery.url" :preview-src-list="[thumbnailGallery.images[0], ]" :initial-index="0" class="preview"
|
||||
style="width: 300px; height: 300px" fit="contain"/>
|
||||
</picture>
|
||||
</div>
|
||||
@ -232,6 +232,8 @@ let tags = computed(() => {
|
||||
})
|
||||
|
||||
let thumbnailGallery = computed(() => {
|
||||
if(store.state.thumbnailGallery.images === undefined)
|
||||
store.state.thumbnailGallery.images = []
|
||||
return store.state.thumbnailGallery
|
||||
})
|
||||
|
||||
|
||||
@ -293,7 +293,7 @@ const mutations = {
|
||||
break;
|
||||
case "下载完成":
|
||||
task.progress = "下载完成"
|
||||
task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode
|
||||
task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode + "&gid=" + task.gid
|
||||
let links = []
|
||||
for(let i=1; i<=task.pages; i++)
|
||||
links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid);
|
||||
@ -632,6 +632,10 @@ export default new vuex.Store({
|
||||
})
|
||||
|
||||
function getShortname(name){
|
||||
if(name === null){
|
||||
console.log(name)
|
||||
return null
|
||||
}
|
||||
if (name.includes("[")) {
|
||||
let lastIndex = name.lastIndexOf("[")
|
||||
name = name.substring(0, lastIndex)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user