diff --git a/web-to-ppt/popup.js b/web-to-ppt/popup.js index 9a12f32..9ba8b12 100644 --- a/web-to-ppt/popup.js +++ b/web-to-ppt/popup.js @@ -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 }); + await chrome.downloads.download({ url, filename, saveAs: true }); setTimeout(() => URL.revokeObjectURL(url), 60000); setProgress(100, `已导出:${filename}`);