diff --git a/src/views/home/content/Content.vue b/src/views/home/content/Content.vue index c7d31f0..0c200d6 100644 --- a/src/views/home/content/Content.vue +++ b/src/views/home/content/Content.vue @@ -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",