Skip to content

Commit 48daefe

Browse files
cpf23333wumail
authored andcommitted
修复在qiankun等微前端框架中在子应用里使用时下载方法报错的问题
1 parent 6f3764a commit 48daefe

File tree

1 file changed

+1
-1
lines changed
  • packages/extension/src/tools/snapshot

1 file changed

+1
-1
lines changed

packages/extension/src/tools/snapshot/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Snapshot {
3434
}
3535
triggerDownload(imgURI: string) {
3636
const evt = new MouseEvent('click', {
37-
view: window,
37+
view: document.defaultView,
3838
bubbles: false,
3939
cancelable: true,
4040
});

0 commit comments

Comments
 (0)