fix: 去掉 saveAs 测试下载是否正常

This commit is contained in:
李进
2026-07-27 14:27:42 +08:00
parent 75e0268a35
commit 18b5f63fc7
+1 -1
View File
@@ -112,7 +112,7 @@ async function exportPptx() {
const safeTitle = title.replace(/[\\/:*?"<>|]+/g, '-').replace(/\s+/g, '-').slice(0, 64) || 'webpage';
const filename = `web-to-ppt/${safeTitle}-${Date.now()}.pptx`;
await chrome.downloads.download({ url, filename, saveAs: true });
await chrome.downloads.download({ url, filename });
setTimeout(() => URL.revokeObjectURL(url), 60000);
setProgress(100, `已导出:${filename}`);