#1396·Pake

[错误] macOS 上的 window.print() 失败: "webview.print 不允许" (缺少 core:webview:allow-print 权限)

作者: nhanntgit创建于 2026年9月25日更新于 2026年9月29日
标签bug
  1. 创建本地页面 test/index.html:
xml
<!doctype html>
<html>
<body>
  <button onclick="window.print()">Print</button>
</body>
</html>
  1. 包装它: pake ./test --name PakeTest --debug
  2. 打开应用程序并单击打印按钮。