CaiJiYmt 2023-05-06 10:59 采纳率: 0%
浏览 45

Ignored call to 'print()'.The document is sandboxed, and the 'allow-modals' keyword is not set.

vue2使用printjs,打印预览在测试环境chorme和360极速浏览器V12.0正常打开预览界面,但是在生产环境用的360极速浏览器v12.0点击打印预览弹窗弹不出来并且报错Ignored call to 'print()'.The document is sandboxed, and the 'allow-modals' keyword is not set.;请问该问题如何处理啊?

  • 写回答

1条回答 默认 最新

  • 土拨鼠1号 2023-05-06 13:40
    关注

    用浏览器自带的window.print()

    评论

报告相同问题?

问题事件

  • 创建了问题 5月6日