Tauri读取文件Unhandled rejection: path not allowed on the configured scope

Tauri在读取硬盘文件时,会提示:

Unhandled rejection: path not allowed on the configured scope

Tauri读取文件Unhandled rejection: path not allowed on the configured scope

这个原因是权限问题,需要在Tauri.conf.json中配置scope的权限即可。

如我配置的:

Tauri读取文件Unhandled rejection: path not allowed on the configured scope

如果所有硬盘不限制的话,可以写两个星。

注意,我测试必须两个*才可以。

评论 (0)

未连接

暂无评论,快来发表第一条评论吧!