fix: 下载高清图

pull/95/head
刘释隆 1 year ago
parent 2e477c9bcf
commit eeded59b52

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

Loading…
Cancel
Save