From 558f4aba4c0bb8ac98ec7cf793ff89f049d4f576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=9B?= Date: Mon, 27 Jul 2026 14:31:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A0=E5=9B=9E=20saveAs=EF=BC=8C?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=20Chrome=20=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-to-ppt/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`);