From 3275591c117f57a89af05cd5340576390a14f1cf Mon Sep 17 00:00:00 2001 From: digua Date: Thu, 16 Jul 2026 10:17:47 +0800 Subject: [PATCH] fix(capture): remove unsupported snapdom option --- src/utils/snapCapture.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/utils/snapCapture.ts b/src/utils/snapCapture.ts index 31c9ab5d..f888df92 100644 --- a/src/utils/snapCapture.ts +++ b/src/utils/snapCapture.ts @@ -6,7 +6,6 @@ export interface CaptureOptions { backgroundColor?: string crossOrigin?: string embedFonts?: boolean - compress?: boolean filename?: string /** 是否捕获完整的可滚动内容(默认 true) */ fullContent?: boolean @@ -174,7 +173,6 @@ export async function captureAsImageData(rootEl: HTMLElement, options?: CaptureO scale: captureScale, // 禁用字体嵌入可以避免某些 Unicode 字符导致的 encodeURIComponent 错误 embedFonts: options?.embedFonts ?? false, - compress: options?.compress ?? true, backgroundColor: bgColor, }