fix: 下载高清图

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

@ -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