opt: 缩略图生成算法

This commit is contained in:
RockYang
2023-11-28 14:50:19 +08:00
parent a7265c4251
commit 7e50e17aaf
6 changed files with 18 additions and 9 deletions

View File

@@ -259,7 +259,7 @@ const getNext = () => {
// 生成缩略图
const imageList = res.data
for (let i = 0; i < imageList.length; i++) {
imageList[i]["img_thumb"] = imageList[i]["img_url"] + "?imageView2/4/w/300/q/75"
imageList[i]["img_thumb"] = imageList[i]["img_url"] + "?imageView2/4/w/300/h/0/q/75"
}
if (list.value.length === 0) {
list.value = imageList