Merge pull request 'fix: 下载高清图' (#95) from fix/img_error into test

Reviewed-on: #95
pull/96/head
刘释隆 1 year ago
commit 5dfe0eefe0

@ -473,13 +473,13 @@ function sortHandler(orderby: "pictureResult" | "fromuptime") {
refreshHandler();
}
async function downloadImage(item) {
if (!item.thumburl) {
if (!item.imgUrl) {
message.error("请输入有效的图片链接地址");
return;
}
try {
// 使 fetch GET
const response = await fetch(item.thumburl, {
const response = await fetch(item.imgUrl, {
method: "GET",
mode: "cors", //
cache: "default",

Loading…
Cancel
Save