mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-06 08:32:51 +08:00
🐛 修复下载链接异常
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user