修复缩略图预览;优化下载链接;(同步更新)

This commit is contained in:
chuzhongzai
2023-09-10 13:04:49 +08:00
parent 76d8b748ca
commit 4089341073
2 changed files with 9 additions and 3 deletions
+4 -2
View File
@@ -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
})