[错误] macOS 上的 window.print() 失败: "webview.print 不允许" (缺少 core:webview:allow-print 权限)
作者: nhanntgit创建于 2026年9月25日更新于 2026年9月29日
标签bug
- 创建本地页面
test/index.html:
<!doctype html>
<html>
<body>
<button onclick="window.print()">Print</button>
</body>
</html>- 包装它:
pake ./test --name PakeTest --debug - 打开应用程序并单击打印按钮。
内容来源: tw93/Pake