链接全转https协议,去除获取在线预览链接,改为本地生成,修复部分bug,优化预览图(同步更新)

This commit is contained in:
chuzhongzai
2023-07-31 22:23:37 +08:00
parent 7126345398
commit 8e606598dd
5 changed files with 49 additions and 91 deletions
+11 -2
View File
@@ -38,13 +38,14 @@
<hr>
<el-button @click="isQuerying = true">里站搜索</el-button>
<el-button @click="isViewingTag = true">查看标签</el-button>
<div v-show="thumbnailGallery !== {}">
<div v-show="'images' in thumbnailGallery">
<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.url,]" :initial-index="0" class="preview"></el-image>
<el-image :src="thumbnailGallery.url" :preview-src-list="thumbnailGallery.images" :initial-index="0" class="preview"
style="width: 300px; height: 300px" fit="contain"/>
</picture>
</div>
</div>
@@ -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":