🐛 修复下载链接异常

This commit is contained in:
BTMuli
2025-09-28 23:23:40 +08:00
parent b62b0b4902
commit 145438373b

View File

@@ -101,8 +101,7 @@ async function onCopy(): Promise<void> {
await nextTick(); await nextTick();
} }
await showLoading.start("正在复制图片到剪贴板"); await showLoading.start("正在复制图片到剪贴板");
const image = props.image.insert.image; if (buffer.value === null) buffer.value = await getImageBuffer(oriLink.value);
if (buffer.value === null) buffer.value = await getImageBuffer(image);
const size = bytesToSize(buffer.value.byteLength); const size = bytesToSize(buffer.value.byteLength);
await copyToClipboard(buffer.value); await copyToClipboard(buffer.value);
await showLoading.end(); await showLoading.end();